自动登录接口

2016-04-30  本文已影响186人  fastjrun

接口地址

POST /demo-Rest/api/user/autologin/${deviceId}/${txTimeInMills}
Content-Type: application/json

restful参数

| 属性 ** | 类型 | 长度 |约束|说明**|
| ------------- |:-------------:| :-----|: -----||: -----|
| deviceId| String |64位| 必填|设备ID|
| txTimeInMills| int|| 必填|时间戳|

请求

请求参数

| 属性 ** | 类型 | 长度 |约束|说明**|
| ------------- |:-------------:| :-----|: -----||: -----|
| uuidOld| String |64位| 必填|旧登录凭证|

请求示例

{
    "uuidOld": "demo989eed4a526d48ee8acc68288c087cb5212"
}

响应

响应参数

| 属性 ** | 类型 | 长度 |约束|说明**|
| ------------- |:-------------:| :-----|: -----||: -----|
| head| Object || 必填 ||
| body|Object|| 必填|||

head结构

| 属性 ** | 类型 | 长度 |约束|说明**|
| ------------- |:-------------:| :-----|: -----||: -----|
| msg| String |80位| 必填 |成功为ok,失败为错误描述|
| code|String |20位| 必填|成功为0000,失败为错误码|

body结构

| 属性 ** | 类型 | 长度 |约束|说明**|
| ------------- |:-------------:| :-----|: -----||: -----|
| uuidNew| String |64位| 必填 |新登录凭证|
| sex| String |1位| 选填|性别|
| nickName| String |30位| 选填|昵称|
| mobileNo| String |20位| 选填|手机号
| email| String |30位| 必填|邮箱|

响应示例

{
   "head": {
        "msg": "ok", 
        "code": "0000"
    }, 
   "body": {
        "nickName": "叫故事",  
        "sex": 0, 
        "mobileNo": "39910012300", 
        "uuidNew": "989eed4a526d48ee8acc68288c087cb5", 
        "email": "fastjurn12@demo.com"
    }
}
上一篇 下一篇

猜你喜欢

热点阅读