-
Notifications
You must be signed in to change notification settings - Fork 28
v1.user.auth
vissong edited this page Oct 12, 2014
·
1 revision
| 名称 | 内容 |
|---|---|
| 请求URL | http(s)://openapi.wsq.qq.com/v1/user/auth |
| 请求方法 | GET |
| 数据格式 | JSON |
| 参数名 | 说明 | 备注 |
|---|---|---|
| appToken | 应用的appToken | |
| code | 用户code,微社区框架中传递的 code,code一次性有效 | code 过期后,可以使用JSAPI重新获取code |
请求参数请遵守 RFC 1738,对参数进行 encode
| 参数名 | 说明 | 备注 |
|---|---|---|
| uId | 用户在微社区上的ID | 字符串,最长40字节 |
| accessToken | 用户 accessToken 相当于用户登录态使用 | |
| expires | accesToken 的有效期 | 该值有可能会发生变化,请勿写死 |
http(s)://openapi.wsq.qq.com/v1/user/auth?
appToken=**********************&
code=**************************
{
errCode: 0,
errMsg: "",
data: {
uId: '100_1000',
accessToken: 'uijhghdfgjklbvcfdtyudgfcuildshfjkasbgvfasfidsfsda',
expires: 7200 // 有效期
}
}{
errCode: 2006,
errMsg: 'error message'
}本 wiki 由微社区研发团队撰写