1RedOne / 1redone.github.io

FoxDeploy's GitHub.io Page
https://1redone.github.io/
MIT License
6 stars 3 forks source link

Using PowerShell and oAuth #46

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

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

lortega3 commented 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