Created
February 6, 2018 18:26
-
-
Save nbellocam/b6f0ae0d14df140cfdf3e50c3984f5b2 to your computer and use it in GitHub Desktop.
Calling Microsoft Graph API from an Azure Function using JavaScript - putting all together
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
const name = 'MyGroup'; | |
getToken().then(token => { | |
console.log('Token OK. Next: create the group'); | |
createGroup(token, name) | |
.then(result => { | |
console.log('Everything OK.'); | |
console.log(result); | |
}).catch(() => { | |
console.log('An error occurred while creating the group'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment