3. 获取 code
POST
https://{{worktile_domain}}/oauth2/decision
pm.test("3. 获取 code", function () {
var responseText = pm.response.text();
var codeRegex=/(?<=code=)(.*)$/;
pm.environment.set("code", codeRegex.exec(responseText)[0]);
console.log('-- 2 res code --',pm.environment.get("code"));
});
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/x-www-form-urlencoded
Body 参数application/x-www-form-urlencoded
transaction_id
string
必需
示例值:
{{transaction_id}}
team_id
string
必需
示例值:
{{team_id}}
grant_type
string
必需
示例值:
code
示例代码
返回响应
修改于 2023-10-13 05:52:57