API V2.x Discussion

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
phate89
Posts: 21
Joined: Fri Nov 06, 2009 2:50 pm

Re: API V2.x Discussion

Postby phate89 » Tue Aug 08, 2017 10:20 am

mlaggner wrote:according to the docs at https://api.thetvdb.com/swagger#!/Serie ... ages_query there should be a languageId in the image response, but unfortunately I cannot find this tag in my test cases

https://api.thetvdb.com/series/83462/im ... ype=poster

Code: Select all

data": [
    {
      "id": 42756,
      "keyType": "poster",
      "subKey": "",
      "fileName": "posters/83462-1.jpg",
      "resolution": "680x1000",
      "ratingsInfo": {
        "average": 4.4,
        "count": 17
      },
      "thumbnail": "_cache/posters/83462-1.jpg"
    }, ...
]

+1
There's also no way to retrieve a full list of images of all languages. If you don't set it it falls back to english leaving out localized ones

patsoffice
Posts: 2
Joined: Wed Aug 16, 2017 5:57 pm

Re: API V2.x Discussion

Postby patsoffice » Wed Aug 16, 2017 6:15 pm

Not sure if I have found some bugs (or I'm doing something really, really wrong), but when when using Swagger to generate a Go language client I encountered some problems.

First, in the "Series" object, "seriesId" is defined to type "integer" in the swagger.json. However, the server API responds with a string. In fact, all other objects with a "seriesId" item are defined as type "string". I suspect this should be changed in the "Series" object.

Second, the "/search/series" GET call is supposed to return an array of results. The problem is that the 200 response only returns a single instance of a "SeriesSearchData" object. I suspect the correct thing to do is the "/search/series" 200 response should instead return a "SeriesSearchResult" that is defined as an array of "SeriesSearchData" objects.

I have made changes to the swagger.json locally which results in a working client (in my limited testing).

Finally, I looked at Trello, but I can't figure out how the heck to do anything there. Is there a more proper way to file a bug report?

Thanks!

andykais
Posts: 1
Joined: Sat Apr 29, 2017 4:47 pm

Re: API V2.x Discussion

Postby andykais » Wed Aug 16, 2017 9:49 pm

Unsure if I am using the api incorrectly, but on Swagger /updates always yields

Code: Select all

{ data: null }

no matter the time I give it. Here are some times I tried:

Code: Select all

// attempted Aug 8 - Aug 15
fromTime: 1502246395828
toTime: 1502851226685
// attempted just Aug 8
fromTime: 1502246395828
// attempted utc time Aug 8 - Aug 15
fromTime: 1502246719919
toTime: 1502851554244


I can use /search properly so I know my token is working

patsoffice
Posts: 2
Joined: Wed Aug 16, 2017 5:57 pm

Re: API V2.x Discussion

Postby patsoffice » Wed Aug 16, 2017 10:49 pm

andykais wrote:

Code: Select all

// attempted Aug 8 - Aug 15
fromTime: 1502246395828
toTime: 1502851226685



You are using epoch time with milliseconds. Drop the last 3 digits. ;-)


Return to “Developers”

Who is online

Users browsing this forum: No registered users and 1 guest