userinfo_api.yml
782 字节
name: 获取用户信息
base_url: ${ENV(base_url)}
verify: False
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
access_token: ${get_task_accesstoken()}
sign: ${make_sign($currtime, $uuid, $access_token)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0
X-MMM-AccessToken: $access_token
# X-MMM-AppName: com.maimaimai.abilityIOS
X-MMM-AppProject: ability
X-MMM-DeviceType: "0"
X-MMM-Sign: $sign
X-MMM-Timestamp: $currtime
X-MMM-Uuid: $uuid
X-MMM-Version: 0.12.0
json:
clientId: lks3Z8Ncn2jhr
method: POST
url: /v2/user/userInfo
validate:
- eq:
- content.code
- 0