Something I discovered several years ago, that I'm now realizing may not be popular knowledge, is that iOS shortcuts has the ability to make API calls. The action is called Get Contents of URL. It's a bit deceiving because it sounds like it only does GET requests, but in reality it can also do POST, PUT, PATCH, DELETE, along with JSON, Form, or File request bodies, and headers! Combining this with existing iOS shortcut actions make it a pretty powerful tool, and it's something I use with my apps pretty regularly. Here's an example flow for adding a new RSS feed to my aggregator: Grabs input from the clipboard (this could also be a sharesheet, very handy for iOS) Gets the RSS feeds for a given URL Gets the name of the website Sends an API call to my aggregator with authorization headers and JSON body with the variables listed in 2 and 3 Shows the response of the API call By using the Sharesheet input instead of clipboard I can easily click the Share button in any app then select "Add…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.