Open utterances-bot opened 1 year ago
How can I leverage PS to download the info from (sample> PS> $token = 'xxxxxxxxxx' PS> $params = @{ Uri = 'https://cat-fact.herokuapp.com/facts' Headers = @{ 'Authorization' = "Bearer $token" } Method = 'POST' Body = $jsonSample ContentType = 'application/json' } PS> Invoke-RestMethod @params
into an CSV file?
Thanks!
Lou
Using PowerShell and oAuth
FoxDeploy.com, Stephen Owen's technical blog about PowerShell, Systems Administration, GUI Design and Programming. .
https://www.foxdeploy.com/blog/using-powershell-and-oauth.html