【问题标题】:Yahoo social/contacts api -> update contact (PUT method)Yahoo social/contacts api -> 更新联系人(PUT 方法)
【发布时间】:2017-09-26 18:01:17
【问题描述】:

所以.. 我很久以前写的更新雅虎联系人的应用程序似乎已经停止工作了...它使用 oauth1 进行身份验证...

http://social.yahooapis.com/v1/user/me/contacts 执行 PUT 给我一个404 Not Found on Accelerator 错误

<!-- status code : 404 -->
<!-- Not Found on Accelerator -->
<!-- host machine: e20.ycpi.cha.yahoo.com -->
<!-- timestamp: 1506448562.000 -->
<!-- url: http://social.yahooapis.com/v1/user/me/contacts-->

认为问题可能是他们的 oauth1 api.. 我切换到 oauth2

同样的错误

所以我尝试http://social.yahooapis.com/v1/user/me/contacts (httpS) 我明白了 401 You are unauthorized for this operation

我正在使用范围 sdct-w (https://developer.yahoo.com/oauth2/guide/yahoo_scopes/)

Yahoo Contacts API 是死了还是我做错了什么?

【问题讨论】:

    标签: yahoo-api yahoo-oauth


    【解决方案1】:

    https://social.yahooapis.com/v1/user/{guid}/contacts

    a) 端点现在是 https(文档仍然显示 http)
    b) 过去可以使用“我”作为 {guid} ...现在不再是这种情况了

    【讨论】:

      【解决方案2】:

      您必须根据您的请求添加访问令牌。 试试:

      https://social.yahooapis.com/v1/user/me/contacts?access_token=${access_token}&format=json
      

      【讨论】:

        猜你喜欢
        • 2012-08-24
        • 1970-01-01
        • 2013-12-27
        • 1970-01-01
        • 1970-01-01
        • 2016-10-18
        • 1970-01-01
        • 1970-01-01
        • 2017-02-11
        相关资源
        最近更新 更多