diff --git a/docs/publish.md b/docs/publish.md index 41370778..7cb02ff1 100644 --- a/docs/publish.md +++ b/docs/publish.md @@ -2439,7 +2439,18 @@ Here's an example showing how to upload an image: req.Header.Set("Filename", "flower.jpg") http.DefaultClient.Do(req) ``` - + +=== "PowerShell" + ``` powershell +$Request = @{ + Method = "POST" + Uri = "ntfy.sh/flowers" + InFile = "flower.jpg" + Headers = @{"Filename" = "flower.jpg"} +} + Invoke-RestMethod @Request + ``` + === "Python" ``` python requests.put("https://ntfy.sh/flowers",