const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
Version: '<version>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
skip: 0,
limit: 20,
fromDate: '2023-11-07T05:31:56Z',
toDate: '2023-11-07T05:31:56Z'
})
};
fetch('https://services.leadconnectorhq.com/social-media-posting/{locationId}/posts/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));