accessToken_api.yml
851 字节
name: 获取授权令牌
base_url: ${ENV(base_url)}
verify: False
variables:
currtime2: ${make_time()}
uuid2: ${make_uuid()}
access_token2: ''
sign2: ${make_sign($currtime2, $uuid2,$access_token2)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0
X-MMM-AppProject: ability
X-MMM-AccessToken: $access_token2
X-MMM-DeviceType: "0"
X-MMM-Sign: $sign2
X-MMM-Timestamp: $currtime2
X-MMM-Uuid: $uuid2
X-MMM-Version: 0.12.0
json:
clientId: lks3Z8Ncn2j
authCode: ${get_authcode()}
clientSecret: gtfhyjukiol3Qncbvmdwe67khh
method: POST
url: /v1/auth/accessToken
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功