API:
https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,EUR&e=Coinbase&extraParams=your_app_name
Code:
[[jsoncontentimporter url=https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,EUR&e=Coinbase&extraParams=your_app_name debugmode=10]
USD: {USD} - EUR: {EUR}
[/jsoncontentimporter]]
In action:
DEBUG: Cache is NOT active
DEBUG: try to retieve this url: https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,EUR&e=Coinbase&extraParams=your_app_name
DEBUG: wp_safe_remote_get to https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,EUR&e=Coinbase&extraParams=your_app_name
DEBUG: arguments: Array ( [timeout] => 5 )
DEBUG: success getting URL
DEBUG: api-answer:
Inspect JSON: Copypaste (click in box, Strg-A marks all, then insert into clipboard) the JSON from the following box to https://jsoneditoronline.org):
DEBUG: basenode: no basenode defined
DEBUG: template:
DEBUG:
LEAVE function checkType // depth: 1 // result: USD: 97471.32 – EUR: 92199.59
// returnHTMLinsideProc:
DEBUG: result:
USD: 97471.32 – EUR: 92199.59