ucenter_login_api.yml
1.1 KB
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
39
40
41
42
43
name: 用户中心账号登录
base_url: ${ENV(base_public_url)}
verify: False
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
access_token: ''
sign: ${make_sign($currtime, $uuid,$access_token)}
grantType: signInPassword
phone: ${ENV(appphone)}
password: 7c4a8d09ca3762af61e59520943dc26494f8941b
Type: 1
msg: ok
teardown_hooks:
- ${teardown_hook_get_cuid($response)}
- ${teardown_hook_get_credentials($response)}
- ${teardown_hook_get_muid($response)}
- ${teardown_hook_get_cid($response)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
X-MMM-AccessToken: $access_token
X-MMM-DeviceType: '1'
X-MMM-Sign: $sign
X-MMM-Timestamp: $currtime
X-MMM-Uuid: $uuid
X-MMM-Version: 0.9.0
json:
grantType: $grantType
password: $password
phone: $phone
clientId: lks3Z8Ncn2j
method: POST
url: ucenter/v2/auth/loginAggregate
extract:
# cuid: content.data.cuid
credentials: content.data.credentials
validate:
- eq:
- content.msg
- ok