【发布时间】:2020-10-08 06:43:00
【问题描述】:
如here 所述,用于致电https://api.login.yahoo.com/openid/v1/userinfo 首先我调用了https://api.login.yahoo.com/oauth2/get_token API 并获得了 access_token,然后根据指南将访问令牌传递给 userInfo API,但没有得到响应。 邮递员请求:
get Method:
URL: https://api.login.yahoo.com/openid/v1/userinfo
header: Authorization : Bearer <access token>
response status 403Forbidden
post Method:
URL: https://api.login.yahoo.com/openid/v1/userinfo
header: Authorization : Bearer <access token>
response status 403Forbidden
post Method:
URL: https://api.login.yahoo.com/openid/v1/userinfo
body: {"access_token": "Bearer <access token>"}
response status 400Bad Request
{
"error": {
"localizedMessage": "client request is not acceptable or not supported",
"errorId": "INVALID_INPUT",
"message": "client request is not acceptable or not supported"
}
}
那我该怎么办? 还请帮助我如何获取联系人列表?
【问题讨论】:
标签: javascript yahoo-api yahoo-mail