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:21] ccagle8 [Extend API Limitations] |
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 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 | ||