有人可以使用 aol oauth api 吗?
我正在开发一个具有多个登录和信息导出选项的应用程序,例如 yahoo、google 联系人、实时联系人等。我尝试为 aol 做 oauth 包装器,遵循 http://dev.aol.com/api/openauth 页面,但它不起作用。
我只是想知道是否有人 chad 成功实现了其规范并获得了一些示例代码,我尝试并获得了响应中的令牌,但是当我尝试执行 api 请求时,我得到了响应:已使用密钥来自未经身份验证的站点
是否必须在在线服务器中运行?我是否必须在我的服务器上获取一些 rsa 签名的文件?
欢迎任何提示,非常感谢!
i'm developing an application with multiple login and information export options like yahoo, google contacts, live contacts etc. I tried to do the oauth wrapper for aol, followed the examples in the http://dev.aol.com/api/openauth page but it doesnt works.
I just only wanted to know if there is anyone that chad succeeded with its specs and got some sample code working, i tried and got the token in response but when i try to do an api request i get the response : Key Used From unauthenticated site
does it have to run in a online server? do i have to get some rsa signed file on my server?
any hint is welcome, thank you very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我以前没有尝试过,但我认为你必须告诉他们你将从中发送请求的IP..
我正在通过 enom API 制作项目,我必须向他们发送我的 IP 来授权我的 API 请求
I haven't tried it before but I think you have to tell them your the IP you will sent requests from..
I was making project over enom API and I had to send them my IP to authorize my API requests
抱歉我回复晚了,这里有点忙。上次我尝试时,示例中的代码终于工作正常,也许他们的服务器有一些问题,或者我错误配置了示例,不确定,但在我的项目中它不起作用,最后我通过使用我在中找到的 CURLOPT_REFERER 参数来管理解决方案例子。我确信这是我的代码中的问题,因为我正在具有 .loc 顶级域的开发环境中进行测试。
最后,我想给所有尝试开发第三方应用程序的人一个提示,这些应用程序检查请求权限的 url 的有效性,您可以通过使用 CURLOPT_REFERER 参数来使用测试环境,方法是在测试环境中设置您想要的生产 url 。
测试环境中的文件
http://www.mycoolsite.loc
。将收到答案的站点将检查引荐来源网址并假定为 .com 而不是 .loc
感谢所有试图帮助我的人。
sorry for my late response, have being little busy here. The code in the example finally worked right last time i tried, maybe their servers had some issues or i misconfigured the example, not sure, but in my project it didnt worked, finally i managed the solution by using the CURLOPT_REFERER parameter i found in the example. I am sure that it was the issue in my code, because i was testing in a devel environment with a .loc top level domain.
Finally i want to give a hint to all the people trying to develop 3rd party apps that check the validity of the urls asking for permissions, you could use a testing environment by using the CURLOPT_REFERER paramater by setting the production url you want in the testing environment.
file in the testing environment
http://www.mycoolsite.loc
.The site that will receive the answer will check the referer and assume the .com one instead the .loc
Thanks to everybody that tried to help me.