I just need a little help with using cURL and JSON in PHP since I never actually got around to doing this. What I am trying to accomplish is to take the ign of the payment and echoing it, also limiting on how much can be posted by the latest donation first.
URL: http://api.buycraft.net/query?secret=83d043249170343dd048d4da62387f6cb39ed97f&action=payments
Native JSON support has been included in PHP since 5.2 in the form of methods json_encode()
and json_decode()
. You would use the first to output a PHP variable in JSON.
Source: Stackoverflow.com