mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
Release notes
This commit is contained in:
parent
4e1980c2cc
commit
d54db74f5a
2 changed files with 9 additions and 8 deletions
|
@ -2438,18 +2438,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"}
|
||||
}
|
||||
$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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue