目录
oauth认证最后一步,获取永久的access_token。
https://account.aliyun.com/oauth/access_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_token | 必须 | string | 通过/oauth/authorize得到的用户授权的oauth_token |
oauth_verifier | 必须 | string | 通过/oauth/authorize得到的oauth_verifier |
https://account.aliyun.com/oauth/access_token?
oauth_consumer_key=f3d499be-5327-4da1-8178-233353361d41
oauth_nonce=34121703335048
oauth_signature_method=HMAC-SHA1
oauth_signature=PgEXcIH1EK25vvb3yohnfG6b+wQ==
oauth_timestamp=1316605887
oauth_version=1.0
oauth_token=ReqTk1316605727574gMLZipQIAX
oauth_version=h5Xij60Wvz
oauth_verifier=verifier_value
参数 | 描述 |
---|
返回数据的输出格式为UTF-8, application/x-www-form-urlencoded,需要对其进行url-decode解码。
oauth_token=B_2Utd1_l613506788223D6BhBuobvojc_2_e3g994-fc2354-71be18--8733235316314e_&oauth_token_secret=Vd9jhwzZX9