login_api.yml
941 字节
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: ${get_partner_account_from_database()}
password: 7c4a8d09ca3762af61e59520943dc26494f8941b
#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