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.
ribasman
Posts: 13
Joined: Thu Dec 22, 2011 9:16 pm

REST API can't make it work

Tue Mar 27, 2018 10:08 am

Hi there, spent all morning trying to implement REST API to my app, since XMLRPC no longer seems to work for me either, but can't get a fix on the http request:"http useragent is not valid".
I'm a registered user agent for a long time and never had rejected requests.
Useragent: ribasman

Please need your help to make things go smoother from now

Best regards
Nuno Ribeiro

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

Re: REST API can't make it work

Tue Mar 27, 2018 1:16 pm

xml-rpc is fixed now, so check it out, all should be good now, sorry.

for your UA, try this:

# curl -A 'ribasman v1.2' https://rest.opensubtitles.org/search/e ... 1/tags-tbs

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

Re: REST API can't make it work

Wed Mar 28, 2018 6:21 am

hi,

i double check it. your username is not same as registered useragent. You registered 'filmo****' - so you that one...then it works.

ribasman
Posts: 13
Joined: Thu Dec 22, 2011 9:16 pm

Re: REST API can't make it work

Wed Mar 28, 2018 9:40 am

Hi,
Still can´t make any API to work but now get response on XMLRPC:
"<?xml version=""1.0"" encoding=""utf-8""?><methodResponse><params><param><value><struct><member><name>status</name><value><string>200 OK</string></value></member><member><name>data</name><value><array><data/></array></value></member><member><name>seconds</name><value><double>0.003</double></value></member></struct></value></param></params></methodResponse>"

On REST API i'm not quiet there yet since always getting "http useragent is not valid" response. Can you post an example of http header with an alias useragent like this please (benfica penta)?

Thanks in advance

ribasman
Posts: 13
Joined: Thu Dec 22, 2011 9:16 pm

Re: REST API can't make it work

Thu Mar 29, 2018 9:38 am

XMLRPC seems to be solved. I'v this code running for years and the header didn't include the 's' mark on the http protocol.
But still no idea to make REST works.

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

Re: REST API can't make it work

Tue Apr 03, 2018 11:56 pm

install curl in to your operating system and check my example what I wrote here in this thread. change UA as needed.

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 28 guests