trakt / api-help

Trakt API docs at https://trakt.docs.apiary.io
179 stars 7 forks source link

UNAUTH_API_GET_LIMIT on every call to GetWatchingAsync #450

Open rarDevelopment opened 4 months ago

rarDevelopment commented 4 months ago

I'm using Trakt.NET to access Trakt and when I use its GetWatchingAsync call, I get

{"name":"UNAUTHED_API_GET_LIMIT","period":300,"limit":1000,"remaining":999,"until":"2024-04-10T03:00:00Z"}

But I'm logging in with a client id and secret, is there another way I should be doing this?

var response = await client.Users.GetWatchingAsync("my-username");
rectifyer commented 4 months ago

This header is just informational. A 429 status code would be returned if you were hitting the rate limit.

rarDevelopment commented 4 months ago

Hmm okay, but I'm getting no value back despite using my username from the URL. Is there somewhere I can check if the call is correct? I'm able to get a show by its slug no problem.

rectifyer commented 4 months ago

Please pose the full request and response from the API. We'd need to see that to check where the error could be.

rarDevelopment commented 4 months ago

Hmm I'll probably run into issues there since I'm using the Trakt.NET package to make the calls. Not sure how to trace it with Fiddler either.

var response = await client.Users.GetWatchingAsync("rardk64");
var show = response.Value;

That's all I'm doing, response.Value and anything else on response is null.

rarDevelopment commented 4 months ago

To be honest, I'm getting a response from GetWatchedShows, so I'm wondering if no shows are tracking as Currently Watching. I can't find where to check this on Trakt.tv so I'm not sure if I even have them set properly.

vankasteelj commented 1 month ago

There is no response if the user is not watching anything (HTTP 204 - no content). If you want to manually check on Trakt.tv if you're watching something, head to your dashboard and you should see a "red banner" like this: firefox_kLAjTMI0ee

rarDevelopment commented 1 month ago

There is no response if the user is not watching anything (HTTP 204 - no content). If you want to manually check on Trakt.tv if you're watching something, head to your dashboard and you should see a "red banner" like this: firefox_kLAjTMI0ee

but how do you set something as currently watching?

vankasteelj commented 1 month ago

Checkin or scrobble: https://trakt.docs.apiary.io/#introduction/terminology

rarDevelopment commented 1 month ago

For a show I'm currently watching, how do you track that in the app? And how do I query for currently watching shows?