Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dorian-davis/f309b845c66ccfe49d74bbfd66723097 to your computer and use it in GitHub Desktop.
Save dorian-davis/f309b845c66ccfe49d74bbfd66723097 to your computer and use it in GitHub Desktop.
Authorize an angular HTTP post call to intercom
$http({
method: "POST",
url: "https://api.intercom.io/users/bulk",
headers: {
'Authorization':'Basic '+ btoa("vk5t941k" + ":" + "b7575206e1612ac58220fbc6c34fd57223d27181"),
'Content-Type' : 'application/json',
'Accept': 'application/json'
},
data: {
"users" : [
{
"user_id": "25",
"email": "wash@serenity.io"
},
{
"user_id":"26",
"email": "zoe@serenity.io"
}
]
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment