Google 财务 API 中的错误 [英] Error in Google finance API

查看:20
本文介绍了Google 财务 API 中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用谷歌金融 api 转换货币.但它在我的本地机器(印度)上不起作用.当我从位于美国的一台服务器上点击并提供正确的结果时,它工作正常.

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.

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

谁能帮我在本地机器上正确使用这个 api?

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

任何帮助都会得到认可谢谢.

Any help will be appriciated Thanks.

推荐答案

我遇到了类似的问题(Google Converter API 突然没有了工作)

根据我的发现,我得到了解决方案并在此得出结论,Google 最近更新了金融 API.以下链接对我有用

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

最新网址: https://finance.google.com/bctzjpnsun/转换器

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

这篇关于Google 财务 API 中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆