Scope

跳转到: 导航, 搜索
(注意事项)
第47行: 第47行:
 
</tr>
 
</tr>
  
 +
</table>
 +
 +
 +
=相关错误代码=
 +
 +
<table class="wiki_table" border="0" cellspacing="0" cellpadding="0">
 +
 +
<tr>
 +
<th class="wiki_table_thfirst">错误码(error)
 +
</th><th> 错误编号(error_code)
 +
</th><th> 错误描述(error_description)
 +
</th></tr>
 +
<tr>
 +
 +
<td class="wiki_table_tdfirst">Insufficient app permissions</td><td>10014
 +
</td><td>应用没有接口的权限
 +
</td>
 +
</tr>
 +
 +
<tr>
 +
<td class="wiki_table_tdfirst">
 +
</td><td>10032
 +
</td><td>用户或授权服务器拒绝授予数据访问权限
 +
</td></tr>
 
</table>
 
</table>

2012年10月26日 (五) 11:34的版本

目录

scope说明

scope是OAuth2.0授权机制中authorize接口的一个参数。


通过scope,平台将开放更多的微博核心功能给开发者,同时也加强用户隐私保护,提升了用户体验,用户在新OAuth2.0授权页中有权利选择赋予应用的功能。

注意事项

1:开发者需要先在应用控制台的接口管理中申请到相关的接口,才能使用scope功能,如果没有接口权限,调用时候会遇到10014错误。


2:满足上一条后,开发者向用户请求scope权限,就会出现高级授权页面(如下图),当用户允许后就能正常使用接口,反之会遇到10032错误。

oauth2v3_3.png

scope权限接口

可一次申请多个scope权限,用逗号分隔。


scope参数 描述
friendships_groups_read 好友分组读取接口组
friendships_groups_write 好友分组写入接口组
statuses_to_me_read 定向微博读取接口组
follow_app_official_microblog 关注应用官方微博


相关错误代码

错误码(error) 错误编号(error_code) 错误描述(error_description)
Insufficient app permissions10014 应用没有接口的权限
10032 用户或授权服务器拒绝授予数据访问权限