Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$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
You can’t perform that action at this time.