目录
https://account.aliyun.com/oauth/request_token
POST
参数 | 是否必须 | 类型 | 描述 |
---|---|---|---|
oauth_consumer_key | 必须 | string | 申请app获得的appKey |
oauth_nonce | 必须 | string | 随即字符串,每次调用不能重复 |
oauth_timestamp | 必须 | long | 时间戳 |
oauth_signature_method | 必须 | string | 固定为HMAC-SHA1 |
oauth_version | 必须 | string | 固定为1.0 |
oauth_signature | 必须 | string | 如何生成oauth_signature,参看阿里云OAuth |
oauth_callback | 必须 | string | 回调url地址,需要URLEncode。关键字oob代表用户授权后不进行callback跳转,直接在页面上显示token。 |
https://account.aliyun.com/oauth/request_token?
oauth_consumer_key=f3d499be-5327-4da1-8178-233353361d41
oauth_nonce=33331304280024
oauth_signature_method=HMAC-SHA1
oauth_signature=P4ZRVYzc3EN1eWQMAG2P3gA/fZw==
oauth_timestamp=1316605096%26
oauth_version=1.0
oauth_callback=http%25253A%25252F%25252Flocalhost%25252Fcallback%25253F
参数 | 描述 |
---|
返回数据的输出格式为UTF-8,application/x-www-form-urlencoded,需要url-decode解码。
oauth_token=ReqTk1316605727574gMLZipQIAX&oauth_token_secret=x6qpRnlEmW9JbQn4PQVVeVG8ZLPEx6A0TOebgwcuA&oauth_callback_confirmed=true