Changes between Version 21 and Version 22 of XMLRPC


Ignore:
Timestamp:
Dec 11, 2008, 7:56:57 AM (16 years ago)
Author:
os
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XMLRPC

    v21 v22  
    5151== !LogIn ==
    5252'''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.
     53This 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.
    5454
    5555Example output:
     
    213213'''array !CheckMovieHash( $token, array($moviehash, $moviehash, ...) )'''
    214214
    215 This method returns best matching !MovieImdbID, !MovieName, !MovieYear, if available for each $moviehash. See also [wiki:XMLRPC#CheckMovieHash2 CheckMovieHash2()]
     215This 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].
    216216
    217217Example output:
     
    253253'''array !CheckMovieHash2( $token, array($moviehash, $moviehash, ...) )'''
    254254
    255 This method returns matching !MovieImdbID, !MovieName, !MovieYear, if available for each $moviehash, always sorted by !SeenCount DESC.
     255This method returns matching !MovieImdbID, !MovieName, !MovieYear, if available for each $moviehash, always sorted by !SeenCount DESC. Read more about [wiki:MovieIdentification Movie Identification].
    256256
    257257Example output:
     
    314314'''array !InsertMovieHash( $token, array( array('moviehash' => $moviehash, 'moviebytesize' => $moviebytesize, 'imdbid' => $imdbid, 'movietimems' => $movietimems, 'moviefps' => $moviefps, 'moviefilename' => $moviefilename), array(...) ) )'''
    315315
    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.
     316Inserts 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].
    317317
    318318Example output: