URL | https://openapi.youku.com/v2/oauth2/authorize |
功能描述 | 获取用户授权 |
返回格式 | html |
HTTP请求方式 | GET |
授权/登录 | false |
当前接口版本 | V2 |
其他接口版本 | 无 |
参数名 | 参数类型 | 必选 | 默认值 | 参数描述 | 示例 |
---|---|---|---|---|---|
client_id | string | true | 应用Key(app key) | ||
response_type | string | true | 默认Authorization Code授权方式,即参数值为“code” | ||
redirect_uri | string | true | 授权跳转地址,必须和管理中心创建应用时设置的Oauth回调地址一致,参考:授权流程 | ||
state | string | false | 状态保持参数,授权完成跳转会回传此参数 |
参数名 | 参数类型 | 允许为空 | 参数描述 | 示例 |
---|---|---|---|---|
code | String | false | 用户授权码,用于交换Access Token | |
state | string | false | 状态保持参数 |
// 请求授权 https://openapi.youku.com/v2/oauth2/authorize?client_id=10000&response_type=code &redirect_uri=http%3A%2F%2Fclient.example.com%2Fcb&state=xyz // 用户授权后重定向 http://client.example.com/cb?code=8aee60afd7d3f616cd20b9bed236bb7d&state=xyz
无