You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
After struggling for a few hours trying to get this script to work I realized the problem I was having was that when you copy the script from GitHub some of the dashes are double dashes and need to be changed to single dashes. Such a stupid thing but it eluded me for a bit.
So wherever you see the "Invoke-RestMethod" you will notice that before the Headers and before Method there is a double dash which needs to be changed to a single dash. Highlighted in bold below.
Invoke-RestMethod -Uri $uri **–**Headers $auth_header **–**Method POST -Body $body
I just did a replace all and it ran smoothly after that!
Also sorry for opening a new issue just didn't feel like commenting on everyone's issue since multiple people have been posting this.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey guys,
After struggling for a few hours trying to get this script to work I realized the problem I was having was that when you copy the script from GitHub some of the dashes are double dashes and need to be changed to single dashes. Such a stupid thing but it eluded me for a bit.
So wherever you see the "Invoke-RestMethod" you will notice that before the Headers and before Method there is a double dash which needs to be changed to a single dash. Highlighted in bold below.
Invoke-RestMethod -Uri $uri **–**Headers $auth_header **–**Method POST -Body $body
I just did a replace all and it ran smoothly after that!
Also sorry for opening a new issue just didn't feel like commenting on everyone's issue since multiple people have been posting this.
The text was updated successfully, but these errors were encountered: