login_api.yml
927 字节
name: 账号登录:/v1/auth/login
base_url: ${ENV(base_url)}
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
access_token: ''
sign: ${make_sign($currtime, $uuid,$access_token)}
grantType: signInPassword
phone: ${convert_to_string(17770000005)}
password: 406f44fcef8d2e74db0f1b334c48369dcf6b38d0
teardown_hooks:
- ${teardown_hook_get_authcode($response)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
X-MMM-AccessToken: $access_token
X-MMM-AppName: com.mmm.partner
X-MMM-AppProject: ability
X-MMM-DeviceType: '1'
X-MMM-Sign: $sign
X-MMM-Timestamp: $currtime
X-MMM-Uuid: $uuid
X-MMM-Version: 0.1.0
json:
phone: $phone
grantType: $grantType
password: $password
clientId: 'pdf233Znkjo'
method: POST
url: /v1/auth/login