Created
May 1, 2015 00:13
-
-
Save gscales/26d9fa299b3de5f86a15 to your computer and use it in GitHub Desktop.
Powershell Online Calendar sample
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
Invoke-RestMethod -Uri ("https://outlook.office365.com/api/v1.0/users/[email protected]/calendarview?startDateTime=" + (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddThh:mm:ssZ") + "&endDateTime=" + (Get-Date).ToUniversalTime().AddDays(7).ToString("yyyy-MM-ddThh:mm:ssZ")) -Credential (Get-Credential) | foreach-object{$_.Value} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks Glen!