Last active
July 18, 2016 13:34
-
-
Save thinklinux/0ea4a2b8d6b22bcf8af772d8b1998d62 to your computer and use it in GitHub Desktop.
Xendo provisioning API
This file contains hidden or 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
// 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