Error in Google finance API

假如想象 提交于 2020-01-10 04:31:30

问题


I want to convert currencies using google finance api. But its not working in my local machine(India). It works fine when I hit from one server located in USA and provides proper result.

Url : https://finance.google.com/finance/converter?a=1&from=ZAR&to=USD&meta=53336452-3e60-4fa1-9740-9ef8ea9e9118

Can anyone please help me to work this api properly in my local machine?

Any help will be appriciated Thanks.


回答1:


I was facing the similar issue (Google Converter API suddenly not working)

As per my finding, I got the solution and conclude here that Google recently update the finance API. The below link is work for me

Latest URL: https://finance.google.com/bctzjpnsun/converter

file_get_contents("https://finance.google.com/bctzjpnsun/converter?a=$amount&from=$from_Currency&to=$to_Currency");


来源:https://stackoverflow.com/questions/49429015/error-in-google-finance-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!