Hi, I am trying to access dfareporting api using powershell. My account has all the authorization it needs. However, when I run it, I get 403 error. Thank you for your help.
$tag = Invoke-RestMethod `
-Method GET `
-Uri $uri `
-Headers @{Authorization = Get-Token} `
Invoke-RestMethod : The remote server returned an error: (403) Forbidden.
$tag = Invoke-RestMethod `
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke
-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRe
stMethodCommand