我正在使用Coindesk JSON API获取最新的比特币汇率。 p>
http://api.coindesk.com/v1/bpi/currentprice /GBP.json p>
我想在我网站的页面上以纯文本显示汇率,例如:“284.0493”。 从JSON数组中提取正确值并将其显示在HTML div中的正确方法是什么? p>
使用JavaScript,PHP甚至Python的任何解决方案都可以。 p>
到目前为止,我一直在使用 this 。 p>
谢谢! p> div>
I'm using the Coindesk JSON API to get the latest Bitcoin exchange rate.
http://api.coindesk.com/v1/bpi/currentprice/GBP.json
I want to display the exchange rate, eg: "284.0493" in plain text on a page on my site. What is the correct way to extract the correct value from the JSON array and display it in a HTML div?
Any solution using JavaScript, PHP or even Python will be fine.
So far I've been working from this.
Thanks!
我正在使用Coindesk JSON API获取最新的比特币汇率。 p>
http://api.coindesk.com/v1/bpi/currentprice /GBP.json p>
我想在我网站的页面上以纯文本显示汇率,例如:“284.0493”。 从JSON数组中提取正确值并将其显示在HTML div中的正确方法是什么? p>
使用JavaScript,PHP甚至Python的任何解决方案都可以。 p>
到目前为止,我一直在使用 this 。 p>
谢谢! p> div>