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.
Wonderm00n
Posts: 15
Joined: Tue Feb 05, 2008 7:39 pm

SearchSubtitles - What I'm I doing wrong?

Wed Jun 30, 2010 4:22 pm

I'm not being able to get any data from method "SearchSubtitles".

I can login and get the token

Here's an example of the XML RPC:

Code: Select all

<methodCall> <methodName>SearchSubtitles</methodName> <params> <param> <value> <struct> <member> <name>token</name> <value> <string>my_token_goes_here</string> </value> </member> <member> <name>vars</name> <value> <array> <data> <value> <struct> <member> <name>sublanguageid</name> <value> <string>eng</string> </value> </member> <member> <name>imdbid</name> <value> <string>1080016</string> </value> </member> </struct> </value> </data> </array> </value> </member> </struct> </value> </param> </params> </methodCall>
Help? Anyone?

Wonderm00n
Posts: 15
Joined: Tue Feb 05, 2008 7:39 pm

Re: SearchSubtitles - What I'm I doing wrong?

Wed Jun 30, 2010 4:31 pm

I've found the problem just a few minutes after posting my question...

I wasn't passing the parameters the right way to the request.

Here goes the correct request:

Code: Select all

<methodCall> <methodName>SearchSubtitles</methodName> <params> <param> <value> <string>85ldka64v3hfjn4r9j7aogig26</string> </value> </param> <param> <value> <array> <data> <value> <struct> <member> <name>sublanguageid</name> <value> <string>eng</string> </value> </member> <member> <name>imdbid</name> <value> <string>1080016</string> </value> </member> </struct> </value> </data> </array> </value> </param> </params> </methodCall>

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 21 guests