mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update readme.md
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
This demo shows interacting with the Github API via Invoke-RestMethod.
|
||||
NOTE: A repo URL must be specified in these scripts and a Github PAT token with access to the repo must be generated and specified
|
||||
|
||||
rest.ps1:
|
||||
rest.ps1:
|
||||
Invoke-RestMethod is used to get the json of a repo as a PowerShell object,
|
||||
the object is then manipulated and the "private" parameter is changed to 'false'.
|
||||
The object is converted back to json formating and Posted back to the repo API
|
||||
|
||||
Reference in New Issue
Block a user