modulData = [{"stockid":6307}]
let signature = md5(`${JSON.stringify(modulData)}5*************************B`);
let data = {
station: "8******7-f****7-4****2-8****3-c**********a",
plugin: "getPDF",
company: "demo",
message: {
netPassportID: "25***5",
pluginData: modulData
},
signature: signature
}
console.log(data);
const config = {
method: "post",
url: "https://ws.wizground.com/api",
headers: {
"Content-Type": "application/json",
},
data: data,
};
console.log(Date.now());
axios(config)
.then(function (response) {
console.log(Date.now());
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(Date.now());
console.log(error.response.data);
});