微博开放平台
微连接
移动应用
网站接入
电商服务商
电商商家
数据服务
数据服务
合作伙伴
微博支付
轻应用
粉丝服务
文档
推广
我的应用
登录
weibo
开发文档
首页
平台政策与指引
概述
平台公约
新手指南
开发者协议
应用运营管理规范
微连接分级管理办法
应用审核产品指南
应用安全开发注意事项
平台应用设计规范
微服务接入指南
微博登录接入
用微博帐号登录
授权机制
移动应用接入
移动应用介绍
移动应用SSO授权
微博Deep Link
媒体接入平台
头条文章开放接口
视频上传开放接口
电商接入平台
电商服务商接入
电商商家端接入
电商平台能力接口
粉丝服务平台
粉丝服务平台
新手接入指南
微信开发者迁移指南
接收消息
发送消息
自定义菜单
用户管理
生成带参数的二维码
Fans Service Platform
商业接口
商业数据接入指南
订阅服务手册(中文版)
订阅服务手册(英文版)
商业接口-REST API
商业数据常见问题
网站接入
网站接入介绍
微博API
微博API
接口访问频次权限
资源下载
SDK
微博标识下载
常见问题
联系我们
工具箱
链入页面
链出更改
特殊页面
查看源代码
跳转到:
导航
,
搜索
根据下列原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
==oauth2/authorize== Authorize interface of OAuth2. ==URL== https://api.weibo.com/oauth2/authorize ==HTTP Request Method== GET/POST ==Request Parameters== {| border="1" cellspacing="0" cellpadding="0" width="100%" class="parameters" style="border-color: #CCCCCC;" |- !width="10%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"| !width="5%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"|Requires !width="10%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"|Type and Range !width="75%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"|Description {{api_args|client_id|true|string|AppKey created when an application is created. }} {{api_args|redirect_uri|true|string|Authorization callback address.Application outside the website need to be the same with the setted callback address,and application inside the website need to be the canvas page URL.}} {{api_args|scope|false|string|It need to be passed when applies for scope authorization.More than one scope can be applied at one time, and should be separated by simeangle comma.[[Scope|document]] }} {{api_args|response_type|false|string|Returned type.Supports code,token.Default is code.}} {{api_args|state|false|string|State for keeping request and callback.It will be returned in Query Parameter when callback.}} {{api_args|display|false|string|Terminal type of the authorization page.The value is as follows.}} |} ;'''display description:''' {| border="1" cellspacing="0" cellpadding="0" width="100%" class="parameters" style="border-color: #CCCCCC;" |- !width="20%" style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|Parameter value !width="80%" style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|Type Description |- |style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|default |style="text-align:left;padding-left:5px;border:1px solid #cccccc"|Default authorization page.Apply to the web browser. |- |style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|mobile |style="text-align:left;padding-left:5px;border:1px solid #cccccc"|Mobile termination authorization page.Apply to the mobile phone that supports html5. |- |style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|popup |style="text-align:left;padding-left:5px;border:1px solid #cccccc"|Popup window type authorization page.Apply to the small window web browser. |- |style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|wap1.2 |style="text-align:left;padding-left:5px;border:1px solid #cccccc"|Wap1.2 authorization page. |- |style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|wap2.0 |style="text-align:left;padding-left:5px;border:1px solid #cccccc"|Wap2.0 authorization page. |- |style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|js |style="text-align:left;padding-left:5px;border:1px solid #cccccc"|Weibo JS-SDK special authorization page.Popup window type.The returned data is JSONP callback function. |- |style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|apponweibo |style="text-align:left;padding-left:5px;border:1px solid #cccccc"|Default authorization page of the application inside the website.Access_token is not returned after authorization.Only refresh the parent frame. |} ==Response== ;'''response_type is code''' {| border="1" cellspacing="0" cellpadding="0" width="100%" class="parameters" style="border-color: #CCCCCC;" |- !width="25%" style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|Returned Field !width="15%" style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|Field Type !width="60%" style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|Field Description {{rdes_args|code|string|It is used for getting the access_token}} {{rdes_args|state|string|It will be returned if parameter 'state' is provided}} |} ;'''response_type is token''' {| border="1" cellspacing="0" cellpadding="0" width="100%" class="parameters" style="border-color: #CCCCCC;" |- !width="25%" style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|Returned Field !width="15%" style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|Field Type !width="60%" style="text-align:left;padding-left:5px;font-weight:bolder;border:1px solid #cccccc"|Field Description {{rdes_args|access_token|string|Authorized access token.For calling other interfaces}} {{rdes_args|expires_in|string|Valid time of access token.Timestamp format of unix}} {{rdes_args|refresh_token|string|Refresh token.It will be returned if the application is allowed}} {{rdes_args|state|string|It will be returned if parameter 'state' is provided}} |} ==Example== ;'''response_type is token''' <pre> //Request https://api.t.sina.com.cn/oauth2/authorize?client_id=123050457758183&redirect_uri=http://www.example.com/response&response_type=token //Will redirect after authorization http://www.example.com/response#access_token=ACCESS_TOKEN&expires_in=250327040&refresh_token=REFRESH_TOKEN </pre> ;'''response_type is code''' <pre> //Request https://api.t.sina.com.cn/oauth2/authorize?client_id=123050457758183&redirect_uri=http://www.example.com/response&response_type=code //Will redirect after authorization http://www.example.com/response&code=CODE </pre> __NOTOC__
该页面使用的模板:
模板:Api args
(
查看源代码
)
模板:Rdes args
(
查看源代码
)
返回到
2/oauth2/authorize/en
。
反馈
分享
顶部