const options = {
method: 'GET',
headers: {Authorization: '<authorization>', Version: '<version>'}
};
fetch('https://services.leadconnectorhq.com/social-media-posting/{locationId}/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));