Created
May 14, 2015 02:38
-
-
Save lazywinadmin/a1d8dfa9a0159d0dbe43 to your computer and use it in GitHub Desktop.
Get Office365 Calendar Items using REST API
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/sharedmailbox@domain.com/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