【问题标题】:how to request yahoo userInfo and contact list如何请求雅虎用户信息和联系人列表
【发布时间】: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


    【解决方案1】:

    我解决了,问题是我在 yahoo 中创建应用程序时忘记授予对配置文件 API 的访问权限。所以在授予访问权限后,它工作正常

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-11-21
      • 2012-11-23
      • 1970-01-01
      • 1970-01-01
      • 2023-03-15
      • 2013-08-20
      • 2021-02-03
      相关资源
      最近更新 更多