Changes between Initial Version and Version 1 of XmlRpcServerInfo


Ignore:
Timestamp:
Sep 28, 2008, 11:45:57 AM (16 years ago)
Author:
guest
Comment:

Created this page [Majky]

Legend:

Unmodified
Added
Removed
Modified
  • XmlRpcServerInfo

    v1 v1  
     1
     2[[PageOutline(3-4, Sections)]]
     3
     4== !ServerInfo ==
     5
     6=== Intro ===
     7
     8  get some basic server information
     9
     10
     11----
     12=== Description ===
     13
     14  '''struct !ServerInfo()'''
     15 
     16  This function returns a structure with basic server information (urls, contacts) and some statistics, including number of users currently online.
     17
     18
     19----
     20=== Parameters ===
     21
     22  this function has no parameters
     23
     24
     25----
     26=== Return Values ===
     27
     28  Output is returned in this structure:
     29{{{
     30struct(
     31  (string) [xmlrpc_version],
     32  (string) [xmlrpc_url],
     33  (string) [application],
     34  (string) [contact],
     35  (string) [website_url],
     36  (string) [users_online_total],
     37  (string) [users_online_program],
     38  (string) [users_loggedin],
     39  (string) [users_max_alltime],
     40  (string) [users_registered],
     41  (string) [subs_downloads],
     42  (string) [subs_subtitle_files],
     43  (string) [movies_total],
     44  (string) [movies_aka],
     45  (string) [total_subtitles_languages],
     46  struct(
     47    (string) [<language ISO639 2-letter code>],
     48    ... more languages go here ...
     49  ) [last_update_strings],
     50  (double) [seconds]
     51)
     52}}}
     53
     54  and contains these elements:
     55    ''xmlrpc_version''::
     56      version of server's XML-RPC API implementation
     57    ''xmlrpc_url''::
     58      XML-RPC interface URL
     59    ''application''::
     60      server's application name and version
     61    ''contact''::
     62      contact e-mail address for server related quuestions and problems
     63    ''website_url''::
     64      main server URL
     65    ''users_online_total''::
     66      number of users currently online
     67    ''users_online_program''::
     68      number of users currently online using a client application (XML-RPC API)
     69    ''users_loggedin''::
     70      number of currently logged-in users
     71    ''users_max_alltime''::
     72      maximum number of users throughout the history
     73    ''users_registered''::
     74      number of registered users
     75    ''subs_downloads''::
     76      total number of subtitle downloads
     77    ''subs_subtitle_files''::
     78      total number of subtitle files stored on the server
     79    ''movies_total''::
     80      total number of movies in the database
     81    ''movies_aka''::
     82      total number of movie A.K.A. titles in the database
     83    ''total_subtitles_languages''::
     84      total number of subtitle languages supported
     85    ''last_update_strings''::
     86      structure containing information about last updates of translations
     87    ''seconds''::
     88      time taken to execute this command on server
     89
     90
     91----
     92=== Implementations ===
     93
     94  There are currently no available sample implementations.
     95
     96
     97----
     98=== Changelog ===
     99
     100  Version 1: created this function
     101
     102
     103----
     104=== Examples ===
     105
     106
     107==== Input ====
     108 
     109{{{
     110#!xml
     111<methodCall>
     112 <methodName>ServerInfo</methodName>
     113 <params>
     114 </params>
     115</methodCall>
     116}}}
     117
     118 
     119==== Output ====
     120
     121{{{
     122#!xml
     123<methodResponse>
     124 <params>
     125  <param>
     126   <value>
     127    <struct>
     128     <member>
     129      <name>xmlrpc_version</name>
     130      <value><string>0.1</string></value>
     131     </member>
     132     <member>
     133      <name>xmlrpc_url</name>
     134      <value><string>http://www.opensubtitles.org/xml-rpc</string></value>
     135     </member>
     136     <member>
     137      <name>application</name>
     138      <value><string>OpenSuber v0.2</string></value>
     139     </member>
     140     <member>
     141      <name>contact</name>
     142      <value><string>... admin's e-mail address goes here ...</string></value>
     143     </member>
     144     <member>
     145      <name>website_url</name>
     146      <value><string>http://www.opensubtitles.org</string></value>
     147     </member>
     148     <member>
     149      <name>users_online_total</name>
     150      <value><string>2024</string></value>
     151     </member>
     152     <member>
     153      <name>users_online_program</name>
     154      <value><string>732</string></value>
     155     </member>
     156     <member>
     157      <name>users_loggedin</name>
     158      <value><string>48</string></value>
     159     </member>
     160     <member>
     161      <name>users_max_alltime</name>
     162      <value><string>9465</string></value>
     163     </member>
     164     <member>
     165      <name>users_registered</name>
     166      <value><string>525040</string></value>
     167     </member>
     168     <member>
     169      <name>subs_downloads</name>
     170      <value><string>94110800</string></value>
     171     </member>
     172     <member>
     173      <name>subs_subtitle_files</name>
     174      <value><string>642475</string></value>
     175     </member>
     176     <member>
     177      <name>movies_total</name>
     178      <value><string>39502</string></value>
     179     </member>
     180     <member>
     181      <name>movies_aka</name>
     182      <value><string>59974</string></value>
     183     </member>
     184     <member>
     185      <name>total_subtitles_languages</name>
     186      <value><string>50</string></value>
     187     </member>
     188     <member>
     189      <name>last_update_strings</name>
     190      <value>
     191       <struct>
     192         <name>en</name>
     193         <value><string>2007-02-03 21:36:14</string></value>
     194        </member>
     195       
     196        ... more languages ...
     197       
     198       </struct>
     199      </value>
     200     </member>
     201     <member>
     202      <name>seconds</name>
     203      <value><double>0.006</double></value>
     204     </member>
     205    </struct>
     206   </value>
     207  </param>
     208 </params>
     209</methodResponse>
     210}}}
     211
     212
     213----
     214=== Notes ===
     215
     216  none yet
     217
     218
     219----
     220=== See also ===
     221
     222
     223----
     224=== Comments ===
     225
     226        add your comments, hints and suggestions here if you like ...
     227
     228
     229--------
     230[Prev] [wiki:XmlRpcIntro Home] [Next]