请求用户登陆授权
GET
/oauth/authorize2
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http:///oauth/authorize2' \
--header 'client_id;' \
--header 'response_type;' \
--header 'redirect_uri;' \
--header 'state;' \
--header 'display;'
响应示例响应示例
{
"redirect_uri": "http://note.youdao.com/test?state=state&code=060148d3e406a80ac5f89e28f4ac633a"
}
请求参数
Header 参数
client_id
string
必需
默认值:
{{client_id}}
response_type
string
必需
默认值:
code
redirect_uri
string
必需
默认值:
{{redirect_uri}}
state
string
必需
默认值:
{{state}}
display
string
必需
默认值:
{{display}}