有人可以使用 aol oauth api 吗?

发布于 2024-12-06 16:40:18 字数 374 浏览 0 评论 0原文

我正在开发一个具有多个登录和信息导出选项的应用程序,例如 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你对谁都笑 2024-12-13 16:40:18

我以前没有尝试过,但我认为你必须告诉他们你将从中发送请求的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

顾北清歌寒 2024-12-13 16:40:18

抱歉我回复晚了,这里有点忙。上次我尝试时,示例中的代码终于工作正常,也许他们的服务器有一些问题,或者我错误配置了示例,不确定,但在我的项目中它不起作用,最后我通过使用我在中找到的 CURLOPT_REFERER 参数来管理解决方案例子。我确信这是我的代码中的问题,因为我正在具有 .loc 顶级域的开发环境中进行测试。

最后,我想给所有尝试开发第三方应用程序的人一个提示,这些应用程序检查请求权限的 url 的有效性,您可以通过使用 CURLOPT_REFERER 参数来使用测试环境,方法是在测试环境中设置您想要的生产 url 。

测试环境中的文件http://www.mycoolsite.loc

curl_setopt( CURLOPT_REFERER 'http://www.mycoolsite.com' );

将收到答案的站点将检查引荐来源网址并假定为 .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.

curl_setopt( CURLOPT_REFERER 'http://www.mycoolsite.com' );

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文