Anonymous
9 years agoNot applicable
Status:
Needs Info
Data Refresh API error in PowerShell
Hello, I'm getting the following error when using the sample code in GitHub. Invoke-RestMethod : The remote server returned an error: (415) Unsupported Media Type. At C:\Users\user\Documents...
ksabi
9 years agoAdvocate II
Hello,
Hello,
I tried the same code but get an error too.
the probleme is that the "-" of Uri is not the same as '-" of Headers. the one of header is bigger !!
-Uri $uri –Headers
i made a copy/past '-' of Uri befor Header, Method and Verbose => this action resolved the issue for me.
Another issue now, how do not display the autentication window when we execute the script ??
Regards,
Khaled