Repository navigation
Using Trakt API in Shortcuts #429
|
I’m creating a shortcut for Apple platforms that uses the Trakt API, and I want to make sure I’m following best practices. My shortcut makes a single call to the Trakt API to get a user’s watch history for the current day. It’s meant to be used once per day, certainly not more than a few times in a day. When I distribute the shortcut, would it be appropriate to include my app’s API key? Or should I direct users to sign up for their own? I don’t want users to hit a rate limit if several people are using the shortcut at the same time, though I don’t think that would be a problem if rate limits are based on IP address. The API key will be stored in plain text and user-accessible as Shortcuts actions can’t be concealed or locked. What would be the best way of going about this? |
Replies: 2 comments 2 replies
|
Hey, I was about to open a new discussion and found this one. Following the latest announcement about new token validity, I've been thinking about how to use the Trakt API and Device Authentication and thought I'd share what I tested. I've created 4 Shortcuts that work, more or less, together to:
It works nicely on both iPhone and Mac 😏
Hope this helps someone ✨ |
Hey,
I was about to open a new discussion and found this one.
Following the latest announcement about new token validity, I've been thinking about how to use the Trakt API and Device Authentication and thought I'd share what I tested.
I've created 4 Shortcuts that work, more or less, together to:
meto avoid asking for the username.It works nicely on both iPhone and Mac 😏
Trakt API Shortcuts Test.zip