Changes between Version 21 and Version 22 of XMLRPC
- Timestamp:
- Dec 11, 2008, 7:56:57 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
XMLRPC
v21 v22 51 51 == !LogIn == 52 52 '''array !LogIn( $username, $password, $language, $useragent )''' 53 This will login user. This function should be called always when starting talking with server. It returns '''token''', which must be used in later communication. If user has no account, blank username and password should be OK. As language - use [http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes ISO639] 2 letter code and later communication will be done in this language if applicable (error codes and so on). Note: when username and password is blank, status is 200 OK, because we want allow anonymous users too. Useragent cannot be empty string. For $useragent use your registered useragent, also provide version number - it is possible, in some version you will change hash algo, so we need delete those hashes comparing version.53 This will login user. This function should be called always when starting talking with server. It returns '''token''', which must be used in later communication. If user has no account, blank username and password should be OK. As language - use [http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes ISO639] 2 letter code and later communication will be done in this language if applicable (error codes and so on). Note: when username and password is blank, status is 200 OK, because we want allow anonymous users too. Useragent cannot be empty string. For $useragent use your [wiki:DevReadFirst registered useragent], also provide version number - we need tracking version numbers of your program. 54 54 55 55 Example output: … … 213 213 '''array !CheckMovieHash( $token, array($moviehash, $moviehash, ...) )''' 214 214 215 This method returns best matching !MovieImdbID, !MovieName, !MovieYear, if available for each $moviehash. See also [wiki:XMLRPC#CheckMovieHash2 CheckMovieHash2()] 215 This method returns best matching !MovieImdbID, !MovieName, !MovieYear, if available for each $moviehash. See also [wiki:XMLRPC#CheckMovieHash2 CheckMovieHash2()]. Read more about [wiki:MovieIdentification Movie Identification]. 216 216 217 217 Example output: … … 253 253 '''array !CheckMovieHash2( $token, array($moviehash, $moviehash, ...) )''' 254 254 255 This method returns matching !MovieImdbID, !MovieName, !MovieYear, if available for each $moviehash, always sorted by !SeenCount DESC. 255 This method returns matching !MovieImdbID, !MovieName, !MovieYear, if available for each $moviehash, always sorted by !SeenCount DESC. Read more about [wiki:MovieIdentification Movie Identification]. 256 256 257 257 Example output: … … 314 314 '''array !InsertMovieHash( $token, array( array('moviehash' => $moviehash, 'moviebytesize' => $moviebytesize, 'imdbid' => $imdbid, 'movietimems' => $movietimems, 'moviefps' => $moviefps, 'moviefilename' => $moviefilename), array(...) ) )''' 315 315 316 Inserts or updates data to tables, which are used for !CheckMovieHash() and !CheckMovieHash2(). Requested parameters are: '''moviehash, moviebytesize, imdbid''', all rest parameters are '''optional''', but preferred to supply them. Before accepting moviehashes, each moviehash is checked against log table if user doesn't already send it. 316 Inserts or updates data to tables, which are used for !CheckMovieHash() and !CheckMovieHash2(). Requested parameters are: '''moviehash, moviebytesize, imdbid''', all rest parameters are '''optional''', but preferred to supply them. Before accepting moviehashes, each moviehash is checked against log table if user doesn't already send it. Read more about [wiki:MovieIdentification Movie Identification]. 317 317 318 318 Example output: