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 (1-10): Cache is NOT active
DEBUG (1-10): 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: {"timeout":5}
DEBUG: success getting URL
DEBUG (1-10): 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 (1-10): basenode: no basenode defined
DEBUG (1-10): template:
DEBUG (1-10):
LEAVE function checkType // depth: 1 // result: USD: 100115.44 – EUR: 96567.57
// returnHTMLinsideProc:
DEBUG (1-10): result:
USD: 100115.44 – EUR: 96567.57