📅  最后修改于: 2022-03-11 14:55:34.027000             🧑  作者: Mango
const fetch = require('node-fetch');
let response = await fetch(`your url paste here`, {
headers: {
Authorization: `Token ${API_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
method: 'POST',
});
const results = await response.json();
console.log("======> :: results", results);