Created
April 12, 2016 08:10
-
-
Save dorian-davis/f309b845c66ccfe49d74bbfd66723097 to your computer and use it in GitHub Desktop.
Authorize an angular HTTP post call to intercom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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