This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
plugins:extend_api [2011/05/14 14:20] ccagle8 [API Syntax] |
plugins:extend_api [2014/02/07 09:58] (current) datiswous [PHP Example Code] |
||
---|---|---|---|
Line 22: | Line 22: | ||
Since the result is in json format, you can turn the above into a PHP object array with ''json_decode($response)''. The resulting array will look like this: | Since the result is in json format, you can turn the above into a PHP object array with ''json_decode($response)''. The resulting array will look like this: | ||
- | <code> | + | <code php> |
stdClass Object | stdClass Object | ||
( | ( | ||
Line 34: | Line 34: | ||
[owner] => mvlcek | [owner] => mvlcek | ||
[path] => http=>//get-simple.info/extend/plugin/translate/112/ | [path] => http=>//get-simple.info/extend/plugin/translate/112/ | ||
- | [rating] => | + | [rating] => 4.8 |
[status] => successful | [status] => successful | ||
[support_url] => http=>//get-simple.info/forum/topic/1610/translation-plugin/ | [support_url] => http=>//get-simple.info/forum/topic/1610/translation-plugin/ | ||
Line 47: | Line 47: | ||
This will echo out the latest version number for the live example above. | This will echo out the latest version number for the live example above. | ||
- | <code> | + | <code php> |
$my_plugin_id = 30; // replace this with yours | $my_plugin_id = 30; // replace this with yours | ||
Line 62: | Line 62: | ||
===== Extend API Limitations ===== | ===== Extend API Limitations ===== | ||
- | This API is only refreshed every 4 hours. This is to limit the server load for a service that does not need to be checked any more frequently than that. Please use this responsibly. | + | This API is cached, and is allowed to be refreshed every 4 hours. This is to limit the server load for a service that does not need to be checked any more frequently than that. Please use this API responsibly. |