Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
abdalaoe
Posts: 2
Joined: Sun Aug 30, 2020 1:19 am

Re: [OS] Brand new REST API for testing

Sat Sep 05, 2020 8:14 pm

Hi there!
I made a golang library to access this new API rest here :https://github.com/TheForgotten69/go-opensubtitles

User avatar
oss
Site Admin
Posts: 5020
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: [OS] Brand new REST API for testing

Wed Sep 09, 2020 11:30 am

very nice and thanks, I added this to newly created wiki page (it will change later) here

https://trac.opensubtitles.org/projects ... singAPInew

if somebody have also some libraries, wrappers etc which is using new API, let me know

os_dev
Posts: 50
Joined: Wed Oct 17, 2018 3:42 pm

Re: [OS] Brand new REST API for testing

Fri Oct 02, 2020 5:38 pm

Just a little note, I had to do a little name changing in the files section, I replaced the "id" by "file_id"

I added a changelog to the documentation
https://www.opensubtitles.com/docs/api/html/index.htm#changelog

Redbirdie
Posts: 1
Joined: Fri Oct 09, 2020 4:25 pm

Re: [OS] Brand new REST API for testing

Fri Oct 09, 2020 4:35 pm

The new REST API looks so much more developer friendly and simple than the old one.

But the author fails to mention about how long after authentication the authorised token will remain valid, will it remain valid for the lifetime or it will get expired after some few mins/hrs..? Do we need to authenticate with username abs password all the time to acquire the token after it got expired... which in my opinion is not so convenient,

Looking forward to a fast response,
Thank you

os_dev
Posts: 50
Joined: Wed Oct 17, 2018 3:42 pm

Re: [OS] Brand new REST API for testing

Sun Oct 11, 2020 12:45 am

Redbirdie wrote:The new REST API looks so much more developer friendly and simple than the old one.

But the author fails to mention about how long after authentication the authorised token will remain valid, will it remain valid for the lifetime or it will get expired after some few mins/hrs..? Do we need to authenticate with username abs password all the time to acquire the token after it got expired... which in my opinion is not so convenient,

Looking forward to a fast response,
Thank you


For now the expiration is set to 24 hours, as it might change my recommandation would be to have a system in place that refreshes the token once a query gets a 401 response.

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 1 guest