【问题标题】:Accessing users Yahoo profile with YQL使用 YQL 访问用户 Yahoo 个人资料
【发布时间】:2014-11-12 06:32:40
【问题描述】:

我正在尝试使用 YQL 访问用户的 Yahoo 个人资料。为此,我将 OAuth 与 YQL 一起使用。我用来获取这些数据的查询是:

q=select%20*%20from%20social.profile%20where%20guid%20%3D%20me&format=json&diagnostics=true&callback=

但是,当我这样做时,我收到以下错误消息: Unsupported authorization scheme: "Bearer"

在发出请求之前,我是否需要设置其他任何内容,例如标头或任何其他字段?

【问题讨论】:

    标签: oauth-2.0 yahoo yql


    【解决方案1】:

    Yahoo YQL 端点不支持 OAuth 2.0 令牌(还没有?)。您可以使用https://developer.yahoo.com/social/rest_api_guide/social_dir_api.html#social_dir_intro-profiles 中描述的 REST API,例如https://developer.yahoo.com/social/rest_api_guide/extended-profile-resource.html:

    curl -H "Authorization: Bearer <token>" https://social.yahooapis.com/v1/user/me/profile?format=json
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-04
      • 2015-03-31
      • 2015-05-03
      • 2014-06-13
      相关资源
      最近更新 更多