From ae3715222fec8a8b3c54d446ea10e1ecb446abc3 Mon Sep 17 00:00:00 2001 From: = <=> Date: Sun, 26 Jun 2022 23:46:00 -0500 Subject: [PATCH] Updated powershell docs to correct syntax, fixed my goofy typos --- docs/publish.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/publish.md b/docs/publish.md index bc9e36b..c89a540 100644 --- a/docs/publish.md +++ b/docs/publish.md @@ -1746,7 +1746,7 @@ And the same example using [JSON publishing](#publish-as-json): } ) - # Powershell requires the 'Depth' argument to equal 3 here to expand 'Extras', otherwise it will read System.Collections.Hashtable in the resturned json + # Powershell requires the 'Depth' argument to equal 3 here to expand 'Extras', otherwise it will read System.Collections.Hashtable in the returned json } | ConvertTo-Json -Depth 3 Invoke-RestMethod -Method 'Post' -Uri $uri -Body $body -ContentType "application/json" -UseBasicParsing @@ -2018,7 +2018,7 @@ And the same example using [JSON publishing](#publish-as-json): body = '{"action": "close"}' } ) - # Powershell requires the 'Depth' argument to equal 3 here to expand 'headers', otherwise it will read System.Collections.Hashtable in the resturned json + # Powershell requires the 'Depth' argument to equal 3 here to expand 'headers', otherwise it will read System.Collections.Hashtable in the returned json } | ConvertTo-Json -Depth 3 Invoke-RestMethod -Method 'Post' -Uri $uri -Body $body -ContentType "application/json" -UseBasicParsing ```