Skip to content

Instantly share code, notes, and snippets.

@thinklinux
Last active July 18, 2016 13:34
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 thinklinux/0ea4a2b8d6b22bcf8af772d8b1998d62 to your computer and use it in GitHub Desktop.
Save thinklinux/0ea4a2b8d6b22bcf8af772d8b1998d62 to your computer and use it in GitHub Desktop.
Xendo provisioning API
// All examples are using the request npm module
// Get
const qs = querystring.stringify({
email: email, // email of the user registered in xendo
service_name: 'asana',
access_token: access_token, // asana's access token for this user
refresh_token: refresh_token // asana's refresh token for this user
});
const url = 'https://xen.do/api/v1/provisioning/service/?' + qs;
request.get(url, {
'auth': {
'bearer': access_token // That's the token that I get autorizing our swipes app to xendo
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment