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_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:
DEBUG: result:
USD: 23001.47 – EUR: 21141.37