What is the proper syntax for using "Invoke-WebRequest" command with api.smartsheet.com?

Options

Hello All,

I'm using Windows Powershell to access and download smartsheet data via  https://api.smartsheet.com. When using the curl command from dos prompt, the following works fine: curl https://api.smartsheet.com/2.0/sheets/{7517664106047364} -H "Authorization: Bearer *********************" -H "Accept: application/vnd.ms-excel" -o TestDB.xlsx

However, I would like to use Windows Powershell as my scripting utility. While in Powershell, &curl.exe is not working and the "Invoke-WebRequest" command is also not working. But I'm not sure if the smartsheet api is developed to handle the "Invoke-WebRequest" command switches. Could anyone provide some insight as to what I'm not doing correctly. very new to smartsheet api.


Thanks!

Willie R

Answers