mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-05 22:31:32 +00:00
199 lines
6.3 KiB
JSON
199 lines
6.3 KiB
JSON
[
|
|
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://tuniu2.ps6b.com/api/v1/member/login",
|
|
"headers": [
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "application/json, text/plain, */*"
|
|
},
|
|
{
|
|
"name": "Access-Control-Allow-Headers",
|
|
"value": "X-Requested-With,Content-Type"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Access-Control-Allow-Methods",
|
|
"value": "OPTIONS, GET, POST, DELETE"
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded"
|
|
},
|
|
{
|
|
"name": "Origin",
|
|
"value": "file://"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.9"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "mobile={{ username |urlencode}}&password={{ password |urlencode}}&group=photoshop",
|
|
"mimeType": "application/x-www-form-urlencoded"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "账号或者密码错误",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": [
|
|
{
|
|
"name": "access_token",
|
|
"re": "\"access_token\":\"(.+?)\",\"expiration_time\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "http://tuniu2.ps6b.com/api/v1/member/sign-count",
|
|
"headers": [
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "application/json, text/plain, */*"
|
|
},
|
|
{
|
|
"name": "Authorization",
|
|
"value": "Bearer {{access_token}}"
|
|
},
|
|
{
|
|
"name": "Access-Control-Allow-Headers",
|
|
"value": "X-Requested-With,Content-Type"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Access-Control-Allow-Methods",
|
|
"value": "OPTIONS, GET, POST, DELETE"
|
|
},
|
|
{
|
|
"name": "Origin",
|
|
"value": "file://"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.9"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "",
|
|
"mimeType": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "登录失败",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": []
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://tuniu2.ps6b.com/api/v1/member/sign-in",
|
|
"headers": [
|
|
{
|
|
"name": "Connection",
|
|
"value": "keep-alive"
|
|
},
|
|
{
|
|
"name": "Accept",
|
|
"value": "application/json, text/plain, */*"
|
|
},
|
|
{
|
|
"name": "Authorization",
|
|
"value": "Bearer {{access_token}}"
|
|
},
|
|
{
|
|
"name": "Access-Control-Allow-Headers",
|
|
"value": "X-Requested-With,Content-Type"
|
|
},
|
|
{
|
|
"name": "User-Agent",
|
|
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "Access-Control-Allow-Methods",
|
|
"value": "OPTIONS, GET, POST, DELETE"
|
|
},
|
|
{
|
|
"name": "Content-Type",
|
|
"value": "application/x-www-form-urlencoded"
|
|
},
|
|
{
|
|
"name": "Origin",
|
|
"value": "file://"
|
|
},
|
|
{
|
|
"name": "Accept-Language",
|
|
"value": "zh-CN,zh;q=0.9"
|
|
},
|
|
{
|
|
"name": "Accept-Encoding",
|
|
"value": "gzip, deflate"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": "",
|
|
"mimeType": "application/x-www-form-urlencoded"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"message\":\"(.+)\",\"data\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |