| 1 | |
| 2 | [[PageOutline(3-4, Sections)]] |
| 3 | |
| 4 | == !AutoUpdate == |
| 5 | |
| 6 | === Intro === |
| 7 | |
| 8 | check for the latest version of given application |
| 9 | |
| 10 | |
| 11 | ---- |
| 12 | === Description === |
| 13 | |
| 14 | '''struct !AutoUpdate (string $program_name)''' |
| 15 | |
| 16 | Checks for the latest version of application ''program_name'' and returns download links and changelog (latest features and bug-fixes). |
| 17 | |
| 18 | |
| 19 | ---- |
| 20 | === Parameters === |
| 21 | |
| 22 | ''program_name (required)'':: |
| 23 | * name of the program/client application you want to check. |
| 24 | * currently supported values: ''subdownloader'', ''oscar'' |
| 25 | |
| 26 | ---- |
| 27 | === Return Values === |
| 28 | |
| 29 | The returned structure contains these elements: |
| 30 | ''status'':: |
| 31 | function result code, see [wiki:XmlRpcStatusCode list of status codes] |
| 32 | ''seconds'':: |
| 33 | time taken to execute this command on server |
| 34 | ''version'':: |
| 35 | latest application version |
| 36 | ''url_windows'':: |
| 37 | download URL for Windows version |
| 38 | ''url_linux'':: |
| 39 | download URL for Linux version |
| 40 | ''comments'':: |
| 41 | application changelog and other comments |
| 42 | |
| 43 | |
| 44 | ---- |
| 45 | === Implementations === |
| 46 | |
| 47 | There are currently no available sample implementations. |
| 48 | |
| 49 | |
| 50 | ---- |
| 51 | === Changelog === |
| 52 | |
| 53 | Version 1: created this function |
| 54 | |
| 55 | |
| 56 | ---- |
| 57 | === Examples === |
| 58 | |
| 59 | |
| 60 | ==== Input ==== |
| 61 | |
| 62 | {{{ |
| 63 | #!xml |
| 64 | <methodCall> |
| 65 | <methodName>AutoUpdate</methodName> |
| 66 | <params> |
| 67 | <param> |
| 68 | <value><string>oscar</string></value> |
| 69 | </param> |
| 70 | </params> |
| 71 | </methodCall> |
| 72 | }}} |
| 73 | |
| 74 | |
| 75 | ==== Output ==== |
| 76 | |
| 77 | {{{ |
| 78 | #!xml |
| 79 | <methodResponse> |
| 80 | <params> |
| 81 | <param> |
| 82 | <value> |
| 83 | <struct> |
| 84 | <member> |
| 85 | <name>version</name> |
| 86 | <value><string>g2v10</string></value> |
| 87 | </member> |
| 88 | <member> |
| 89 | <name>url_windows</name> |
| 90 | <value><string>http://www.opensubtitles.org/addons/download/oscar/oscar.zip</string></value> |
| 91 | </member> |
| 92 | <member> |
| 93 | <name>comments</name> |
| 94 | <value><string>this is the latest version, many new features, all bugs fixed</string></value> |
| 95 | </member> |
| 96 | <member> |
| 97 | <name>status</name> |
| 98 | <value><string>200 OK</string></value> |
| 99 | </member> |
| 100 | <member> |
| 101 | <name>seconds</name> |
| 102 | <value><double>0.004</double></value> |
| 103 | </member> |
| 104 | </struct> |
| 105 | </value> |
| 106 | </param> |
| 107 | </params> |
| 108 | </methodResponse> |
| 109 | }}} |
| 110 | |
| 111 | |
| 112 | ---- |
| 113 | === Notes === |
| 114 | |
| 115 | none yet |
| 116 | |
| 117 | |
| 118 | ---- |
| 119 | === See also === |
| 120 | |
| 121 | |
| 122 | ---- |
| 123 | === Comments === |
| 124 | |
| 125 | add your comments, hints and suggestions here if you like ... |
| 126 | |
| 127 | |
| 128 | -------- |
| 129 | [Prev] [wiki:XmlRpcIntro Home] [Next] |