I use Scriptable to get the login cookie，How can I return the cookie value to IOS shortcut？Just use the clipboard？
Depends on the context. The clipboard is always an option, but x-callback-url calls also allow for a return value for example.
Thank you !
The x-callback-url works well.
Just wanted to let you know that when the next update of Scriptable is out, which will be when iOS 14 is out, you’ll be able to properly return an output to Shortcuts using a new API.
I think you mean iOS 13?
Haha, yes! That was a mistake. Though I’d love the extra time I’d get to polish the update if I could hold it off for the iOS 14 release
Hey @aston_he – can you share the code you used to retrieve the cookie (not the code to send it back to Shortcuts)? I have been looking for sample code to do just that. Thanks!
@aston_he – I figured it out… thanks!
sample script please.
can you share the code. Thanks
A very slow, but somewhat working workaround: write the value to a text document on iCloud and have the second workflow open that file and retrieve its text.
I’ve been using this for a while and it has the added benefits of persistence and sync. It will work across devices and even across applications, since you could use a Keyboard Maestro script to work on that value and pass it back to the file.
I figured out. Thanks to sylumer.