Skip to content

Instantly share code, notes, and snippets.

@AlexanderHolmeset-zz
Created August 13, 2020 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexanderHolmeset-zz/27e38a0de55e5c6bf2487f17765e610c to your computer and use it in GitHub Desktop.
Save AlexanderHolmeset-zz/27e38a0de55e5c6bf2487f17765e610c to your computer and use it in GitHub Desktop.
$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