Changes between Version 1 and Version 2 of XmlRpcIntro
- Timestamp:
- Sep 26, 2008, 9:51:46 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
XmlRpcIntro
v1 v2 3 3 [[PageOutline(2, Sections)]] 4 4 5 We decided use [http://www.xmlrpc.com/ XMLRPC] 6 (see [http://www.xmlrpc.com/spec spec] and [http://www.xmlrpc.com/directory/1568/implementations implementations]) 7 as default API for [http://www.opensubtitles.org opensubtitles.org]. 5 This page is aimed at developers who'd like to implement the OSDb protocol and functionality into their own applications. 6 Here'll you'll find the API specifications for all available functions along with structure definitions and useful hints. 8 7 9 Our API supports many methods so there should be no problems to code some nice client applications. 8 Our API is based on [http://www.xmlrpc.com/ XML-RPC] so you might want to take a look at its 9 [http://www.xmlrpc.com/spec specifications] and [http://www.xmlrpc.com/directory/1568/implementations implementations]. 10 10 11 [http://en.wikipedia.org/wiki/XML-RPC Wikipedia]: 11 Our API supports many methods so there should be no problem to code some nice client applications. 12 13 If you're missing any method feel free to contact us on the [http://forum.opensubtitles.org/viewforum.php?f=8 forum] to discuss possibilities. 14 15 [http://en.wikipedia.org/wiki/XML-RPC Short Wikipedia excerpt about XML-RPC]: 12 16 XML-RPC is a very simple protocol, defining only a handful of data types and commands 13 17 and the entire description can be printed on two pages of paper. … … 19 23 * [wiki:DevReadFirst Read this first] 20 24 * All development testing should be pointed to: http://dev.opensubtitles.org/xml-rpc (currently offline, so use main server) 21 * Main/Production server XML RPC URL: http://www.opensubtitles.org/xml-rpc25 * Main/Production server XML-RPC URL: http://www.opensubtitles.org/xml-rpc 22 26 * Before developing let us know and we will assign/agree on useragent code for your application. 23 27 * For languages codes, check [http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes ISO639], use '''pb/pob''' for Portuguese (Brazil) - [http://www.opensubtitles.org/addons/export_languages.php Download OS languages table dump] … … 25 29 26 30 27 = XML RPC methods =31 = XML-RPC methods = 28 32 29 33 == Session handling == 30 34 * [wiki:XmlRpcLogIn LogIn] - login user and start session 31 '''struct !LogIn( string $username, string $password, string $language, string $useragent )''' 32 * [wiki:XmlRpcLogOut LogOut] - logout user 35 '''struct !LogIn(string $username, string $password, string $language, string $useragent)''' 36 * [wiki:XmlRpcLogOut LogOut] - logout user and end session 37 '''struct !LogOut(string $token)''' 33 38 * [wiki:XmlRpcNoOperation NoOperation] - keep-alive user's session, verify token/session validity 34 39 '''struct !NoOperation(string $token)''' 40 35 41 36 42 == Search and download == 37 43 * [wiki:XmlRpcSearchSubtitles SearchSubtitles] - search for subtitles using video hashes or IMDb ID 44 '''struct !SearchSubtitles(string $token, array(struct('sublanguageid' => string $sublanguageid, 'moviehash' => string $moviehash, 'moviebytesize' => int $moviesize, 'imdbid' => string $imdbid ), struct(...)))''' 38 45 * [wiki:XmlRpcSearchToMail SearchToMail] - search for subtitles, send result to e-mail address 39 46 * [wiki:XmlRpcDownloadSubtitles DownloadSubtitles] - download given subtitle files 47 '''struct !DownloadSubtitles(string $token, array($IDSubtitleFile, $IDSubtitleFile,...) $data)''' 40 48 41 49