user
03/28/2017, 3:53 PM<http://request.post|request.post>({
url:'endpoint',
headers: {
'Authorization' : token,
'content-type': 'application/json',
},
body: JSON.stringify({query: checkExistingPublicProfile, variables : {"phoneNumber":phoneNumber}}),
}, function cb(error, response, body) {
if (err) {
console.log('failed:', err)
}
console.log('body:', body);
});