postman人脸接口调用文档
2022-01-05 本文已影响0人
Dg_fc58
1.设置集合变量

2.添加请求数据

-
算签名和base64
image.png
console.log(biz_content);
publickey="XdaD9FA$05ISpR23";
str="biz_content="+biz_content+"&";
str+="charset="+charset+"&";
str+="format="+format+"&";
str+="method="+method+"&";
str+="publickey="+publickey+"&";
str+="sign_type="+sign_type+"&";
str+="timestamp="+timestamp+"&";
str+="version="+version;
var sign = CryptoJS.SHA1(str);
var base64 = CryptoJS.enc.Base64.stringify(sign).toString();
pm.collectionVariables.set('sign',base64);