nutritious-guitar-71142
01/14/2024, 6:40 AMquick-musician-29561
01/14/2024, 7:08 AMjs
const apiUrl = ''
axios.post(apiUrl, {
headers: { 'Content-Type': 'application/json', 'campaignname': 'test3', 'date': 'test3', 'hashtags': 'test3' }
})
.then((response) => {
console.log(response.data)
})
.catch((error) => {
console.error('Error:', error)
})
quick-musician-29561
01/14/2024, 7:09 AMjs
const apiUrl = '';
axios.post(apiUrl, {
campaignname: 'test3',
date: 'test3',
hashtags: 'test3'
}, {
headers: {
'Content-Type': 'application/json'
}
})
.then((response) => {
console.log(response.data);
})
.catch((error) => {
console.error('Error:', error);
});
check the correct syntax from the APIs official docsnutritious-guitar-71142
01/14/2024, 9:33 AM