Servas icon indicating copy to clipboard operation
Servas copied to clipboard

Add guide for Apple Shortcuts

Open beromir opened this issue 2 years ago • 6 comments

beromir avatar May 26 '22 08:05 beromir

Is this currently possible to do? This would allow me to use it with Safari without having an extension. Love this!

jonathanlaniado avatar Jun 23 '22 00:06 jonathanlaniado

Yes, it's possible.

Steps:

  1. Open the profile menu in Servas and click on API Tokens.
  2. Create a new token with the create permission.
  3. Copy the token and save it somewhere.
  4. Create the Shortcut (see the screenshot below).
  5. Enable Show in Share Sheet.
  6. The API URL is https://your-servas-instance.com/api/links.
  7. Set the value of the Authorization header to Bearer <your_token>.
Screenshot servas_apple_shortcuts

beromir avatar Jun 23 '22 11:06 beromir

Very, very cool, I wasn't even aware you had set up an API for Servas. This was super simple to set up.

Any other fun endpoints I should know about? I discovered /all-links, /all-groups, and /all-tags.

jonathanlaniado avatar Jun 23 '22 14:06 jonathanlaniado

Is it possible to use this to make a bookmarklet for use in a browser?

rb-26 avatar Aug 30 '22 04:08 rb-26

I can't get Set variable and Get content of linked. Is there a trick?

pftnhr avatar Aug 03 '23 07:08 pftnhr

@pftnhr I think this is a visual bug. It should work even without the visible link.

beromir avatar Aug 03 '23 16:08 beromir