Name: app用户密码登录获取token
Request:
| url | https://api-test.qniao.cn/recycle-service/authorize/by-password |
|---|---|
| method | POST |
| headers |
User-Agent: python-requests/2.24.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Content-Type: application/json;charset=UTF-8
X-APP-ID: 1
Content-Length: 97
|
| body | {"account": 18219557422, "accountType": "MOBILE", "password": "dc483e80a7a0bd9ef71d8cf973673924"} |
Response:
| ok | True |
|---|---|
| url | https://api-test.qniao.cn/recycle-service/authorize/by-password |
| status_code | 200 |
| reason | |
| cookies | {} |
| encoding | UTF-8 |
| headers |
Server: nginx
Date: Fri, 11 Sep 2020 01:17:09 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
|
| content_type | application/json;charset=UTF-8 |
| json |
{'code': 0, 'message': 'successful', 'data': {'token': 'biCV33h3cL8Y7rWM52H05Tgd0jbJU2/HR1o7sCdzCTPsMT7C0tCDCkAH10v7rpux', 'userToken': 'IfIn4G0XDEDbghe8odKaW5I2Bvn8GrcjaYSW6VHzm4xDEQdkrM/MOtHfl27KfnsV', 'userId': '496029457996451840'}}
|
Validators:
| check | comparator | expect value | actual value |
|---|---|---|---|
| status_code | equals | 200 | 200 |
| content.message | contains | successful | successful |
Statistics:
| content_size(bytes) | 226 |
|---|---|
| response_time(ms) | 987.28 |
| elapsed(ms) | 985.59 |