In the first three parts of the series, I set up an Azure Functions endpoint to accept a URL and a comment and share it across various social media sources. The last step of making this a proper workflow is to build the iOS shortcut.
The last two parts of this series were very long and tech heavy. This part is mercifully shorter and actually quite easy. The goal here is to create a shortcut in iOS to extract the URL and page title from a website I am visiting, prompt me for a comment, and then hit the API endpoint previously set up with an authentication key. This can be done with the built-in iOS Shortcuts app that ships with all current versions of iOS.
Posts without posting, a series
This is a very simple seven step process. In the iOS Shortcuts app, let’s create a shortcut called “Post Link”. The steps are as follows:
Any
input from Share Sheet
(Sharing -> System -> Share)Text
with Comment
(Scripting -> Notification -> Ask for Input)Tweet
to Provided Input
(Scripting -> Variables -> Set Variable)Page URL
from Shortcut Input
(Web -> Safari -> Get Details of Safari Web Page)Name
from Shortcut Input
(Web -> Safari -> Get Details of Safari Web Page)Method
to POST
key
set to x-functions-key
and text
set to your function key as found in the Azure Function you just set upThat’s it! Here are some images of how mine looks. To use this, whenever I am viewing a website, I can simply open the share tray and click “Post Link.”
Posted: 08.01.2023
Built: 14.10.2024
Updated: 24.04.2023
Hash: 765e2d9
Words: 319
Estimated Reading Time: 2 minutes