auth_accessToken_api.yml 792 字节
name: 获取授权令牌accessToken
base_url: ${ENV(base_url)}
variables:
    currtime: ${make_time()}
    uuid: ${make_uuid()}
    access_token: ''
    sign: ${make_sign($currtime, $uuid, $access_token)}
    clientId: pdf233Znkjo
    clientSecret: oHexnmeomYdo19NCmdwne83dfj
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.ability
        X-MMM-AppProject: ability
        X-MMM-DeviceType: '1'
        X-MMM-Sign: $sign
        X-MMM-Timestamp: $currtime
        X-MMM-Uuid: $uuid
        X-MMM-Version: 0.4.0
    json:
        clientSecret: $clientSecret
        authCode: $authCode
        clientId: $clientId
    method: POST
    url: v1/auth/accessToken