Created
August 13, 2020 08:43
-
-
Save AlexanderHolmeset-zz/2b5ffd6ad0bba11c2522c845dafcc189 to your computer and use it in GitHub Desktop.
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
$url = 'https://tas.teams.microsoft.com/v2/teams/summary-timeseries?timeperiod=last-ninety-days&includeTimeSeries=ActiveUsers&metrics=all&pagesize=20&nextCursor=null' | |
$token = 'CI6IjE4YzRhOTFiLTRmYTktNGZiZC1hYjFjLWIzOTQ' | |
$Header = @{"Authorization" = "Bearer $token" } | |
$data = Invoke-RestMethod -Uri $url -Method GET -Headers $Header -ContentType 'application/json' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment