附言当使用 POSTMAN 调用 api 时,它会使用与 RAW/JSON 输入相同的数据
代码如下:`
fetch(url,{
headers:{
"ContentType": "text/json"
},
method:"POST",
body:{"apiKey": "12345", "clientId": "254455",
"callerId": "02656708557","CallingAgentNumber": "09547142951",
"CalledPartyNumber": "0891879567", "callType":"2"}
}).then(res=>res.json()).then(result=>console.log(result)).catch(err=>console.log(err));
`