-
I'm working on an iOS Shortcut to add a share sheet button that add sites to Shiori. I'm currently able to set curl commands that login and pass the url, but I can't figure out how to pass any other info e.g. title, tags, excerpt. If you have an iOS device here is a link to the shortcut that I currently have as an example. Any guidance on what/if I'm able to use the REST api endpoints to add tags and titles when adding a url? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
Hi! I saw your issue and tried to do it. It works, kinda. For some reason shiori ignores the title and excerpt when passed with the API, so they do not work (they get fetched automatically by shiori). Tags do work (though they were a nightmare to get working, as Go does not understand JSON lists). Here is the iCloud link. When you import it you'll have to fill in your host ( Take a look at this collection I found in #281, you can import it on Postman for more API examples. Hope it helps! Cheers! |
Beta Was this translation helpful? Give feedback.
-
I wrote this wiki page explaining the API a bit Edit: Updated link to new wiki location |
Beta Was this translation helpful? Give feedback.
-
Sorry to open this up again but I made an improved version which automatically inputs the title and description using regex to extract it from the website. link to shortcut |
Beta Was this translation helpful? Give feedback.
-
I made another Shortcut which uses the webpage title directly but no excerpts |
Beta Was this translation helpful? Give feedback.
-
I presume that all of these will be deprecated with the arrival of APIv1? |
Beta Was this translation helpful? Give feedback.
Hi! I saw your issue and tried to do it. It works, kinda. For some reason shiori ignores the title and excerpt when passed with the API, so they do not work (they get fetched automatically by shiori). Tags do work (though they were a nightmare to get working, as Go does not understand JSON lists).
Here is the iCloud link. When you import it you'll have to fill in your host (
http://<ip>:<port>
), as well as your user and password. It logs in shiori to get a session key, then POSTs the shortcut input to the API. I also added a quick add mode to save time.Take a look at this collection I found in #281, you can import it on Postman for more API examples.
Hope it helps! Cheers!