const url = 'https://api.sureshake.com/v2/directory/person/<slug>/profile-views';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
operationId: '3051932a-fdd2-48fa-b330-7e7d41535969',
source: 'direct',
preview: false
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));