login_api.yml 930 字节
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: ${get_partner_password_from_database()}
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