使用YQL访问用户Yahoo配置文件

时间:2014-11-12 06:32:41

标签: oauth-2.0 yahoo yql

我正在尝试使用YQL访问用户Yahoo个人资料。为此,我使用OAQL和YQL。我用来获取此数据的查询是:

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

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

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

1 个答案:

答案 0 :(得分:0)

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