1

所以..我很久以前写的更新雅虎联系人的应用程序似乎已经停止工作......它使用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 (httpsS) 我得到 401 You are unauthorized for this operation

我正在使用范围sdct-whttps://developer.yahoo.com/oauth2/guide/yahoo_scopes/

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

4

2 回答 2

1

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

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

于 2017-09-26T19:21:33.540 回答
1

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

https://social.yahooapis.com/v1/user/me/contacts?access_token=${access_token}&format=json
于 2018-06-04T11:33:53.730 回答