authorize_api.yml
981 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 登录价值系统
base_url: ${ENV(base_url)}
verify: False
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
access_token: ''
sign: ${make_sign($currtime, $uuid,$access_token)}
phone: ${ENV(wpftwphone)}
teardown_hooks:
- ${teardown_hook_get_task_authcode($response)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0
X-MMM-AppName: com.maimaimai.abilityIOS
X-MMM-AppProject: ability
X-MMM-DeviceType: '0'
X-MMM-Sign: $sign
X-MMM-Timestamp: $currtime
X-MMM-Uuid: $uuid
X-MMM-Version: 0.12.0
json:
clientId: lks3Z8Ncn2j
credentials: ${get_credentials()}
cuid: ${get_cuid()}
muid: ${get_muid()}
cid: ${get_cid()}
method: POST
url: v1/auth/authorize
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 登录成功