Scope
(→scope权限接口) |
(→scope权限接口) |
||
第34行: | 第34行: | ||
<tr> | <tr> | ||
<td class="wiki_table_tdfirst">friendships_groups_write</td> | <td class="wiki_table_tdfirst">friendships_groups_write</td> | ||
− | <td>好友分组写入接口组,[http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2#.E5.A5.BD.E5.8F.8B.E5.88.86.E7.BB.84 接口文档]</td> | + | <td>好友分组写入接口组, [http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2#.E5.A5.BD.E5.8F.8B.E5.88.86.E7.BB.84 接口文档]</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
<td class="wiki_table_tdfirst">statuses_to_me_read</td> | <td class="wiki_table_tdfirst">statuses_to_me_read</td> | ||
− | <td>定向微博读取接口组,[http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2#.E5.BE.AE.E5.8D.9A 接口文档]</td> | + | <td>定向微博读取接口组, [http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2#.E5.BE.AE.E5.8D.9A 接口文档]</td> |
</tr> | </tr> | ||
2012年10月26日 (五) 15:10的版本
目录 |
scope说明
scope是OAuth2.0授权机制中authorize接口的一个参数。
通过scope,平台将开放更多的微博核心功能给开发者,同时也加强用户隐私保护,提升了用户体验,用户在新OAuth2.0授权页中有权利选择赋予应用的功能。
注意事项
1:开发者需要先在应用控制台的接口管理中申请到相关的接口,才能使用scope功能,如果没有接口权限,调用时候会遇到10014错误。
2:满足上一条后,开发者向用户请求scope权限,就会出现高级授权页面(如下图),当用户允许后就能正常使用接口,反之会遇到10032错误。
scope权限接口
可一次申请多个scope权限,用逗号分隔。
scope参数 | 描述 |
---|---|
friendships_groups_read | 好友分组读取接口组,接口文档 |
friendships_groups_write | 好友分组写入接口组, 接口文档 |
statuses_to_me_read | 定向微博读取接口组, 接口文档 |
follow_app_official_microblog | 关注应用官方微博,该参数不对应具体接口,只需在应用控制台填写官方帐号即可(默认值是应用开发者帐号) |
相关错误代码
错误码(error) | 错误编号(error_code) | 错误描述(error_description) | 解决方法 |
---|---|---|---|
Insufficient app permissions | 10014 | 第三方应用访问api接口权限受限制 | 应用没有接口的权限,需要在应用控制台接口管理那在线申请 |
access_denied | 10032 | 用户或授权服务器拒绝授予数据访问权限 | 重新向用户申请scope权限 |