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
var aadAppClientId = "8BE5AA0E-F900-4BDF-A7CF-71B3CC53B78E"; | |
var resource = "https://graph.microsoft.com" | |
var query = "/v1.0/me/events"; | |
var tokenFactory = new CC.CORE.Adal.AppTokenFactory(aadAppClientId, resource); | |
tokenFactory.ExecuteQuery(query) | |
.done(function (response) { | |
// Success! | |
}) | |
.fail(function (response) { | |
// NOTE: Provide a link to renew an expired or yet to be approved session: |
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
# UPDATE THESE VARIABLES | |
$userDomain = "@tenant.onmicrosoft.com" | |
$photoFolderURL = "C:\Users\paul.ryan1\Desktop\people\" | |
$data = @( | |
@{ | |
User = "alex.law" + $userDomain; | |
PictureURL = "cast-aaron-j-albano.jpg"; | |
}, | |
@{ |
OlderNewer