问题
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