Page 1 of 1

API: Webhooks support implemented

Posted: Thu Oct 02, 2014 4:48 pm
by oss
Hi guys,

sorry for some server troubles for last days, we are working on that. In meantime also we implemented webhooks. You define webhook url, you send your moviehashes, and once subtitle is linked to moviehash, opensubtitles will POST to your webhook url SearchSubtitles() results - so you will got info, something is new - no need to scan our website in cron. Read here more:

SetSubscribeUrl()
SubscribeToHash()

Re: API: Webhooks support implemented

Posted: Fri Oct 03, 2014 7:58 pm
by eduo
This is nice. Some servers will stop hitting OS so much this way. I'll see about implementing this in SolEol using my own server as intermediary.

Currently several parts of the web and the API throw errors and 404. I assume it's temporary?

Re: API: Webhooks support implemented

Posted: Sat Oct 04, 2014 5:02 am
by oss
It is temporary, we got some serious problems last days. It is possible we have to shutdown API in high loads

Re: API: Webhooks support implemented

Posted: Sat Oct 04, 2014 2:13 pm
by eduo
It is temporary, we got some serious problems last days. It is possible we have to shutdown API in high loads
That's understandable, will there be any kind of special xmlrpc error code for our API users so programs can present the error gracefully?

Re: API: Webhooks support implemented

Posted: Sat Oct 04, 2014 4:35 pm
by oss
503 Service Unavailable

I can change it, if needed.

Re: API: Webhooks support implemented

Posted: Sat Oct 04, 2014 8:38 pm
by eduo
503 Service Unavailable

I can change it, if needed.
Oh. I was getting 404s when trying to log into the web. Must've been something else.

Re: API: Webhooks support implemented

Posted: Sat Oct 04, 2014 9:40 pm
by oss
that was different issue.

Re: API: Webhooks support implemented

Posted: Sat Oct 04, 2014 9:48 pm
by eduo
that was different issue.
Gotcha

Re: API: Webhooks support implemented

Posted: Wed Oct 15, 2014 8:30 am
by guidupuy
Still getting tons of "Service unavailable" errors over here... Any news when this will be resolved?

Re: API: Webhooks support implemented

Posted: Thu Oct 16, 2014 5:10 pm
by oss
well, we are working to solve this issue. Web is solved, now API is coming. It seems we need to order another server for API requests, load 50, cpu usage 2000%. But first I will check xdebug output, if there is some leak...sorry for that.