Changelog
parent
5cac63bfbe
commit
040bb53383
|
@ -2505,10 +2505,10 @@ Here's a simple example:
|
||||||
``` powershell
|
``` powershell
|
||||||
$uri = "https://ntfy.example.com/mysecrets"
|
$uri = "https://ntfy.example.com/mysecrets"
|
||||||
$credentials = 'username:password'
|
$credentials = 'username:password'
|
||||||
$encodedcredentials = [convert]::ToBase64String([text.Encoding]::UTF8.GetBytes($Credentials))
|
$encodedCredentials = [convert]::ToBase64String([text.Encoding]::UTF8.GetBytes($credentials))
|
||||||
$headers = @{Authorization="Basic $encodedcredentials"}
|
$headers = @{Authorization="Basic $encodedCredentials"}
|
||||||
$message = "Look ma, with auth"
|
$message = "Look ma, with auth"
|
||||||
invoke-RestMethod -Uri $uri -Body $message -Headers $headers -Method "Post" -UseBasicParsing
|
Invoke-RestMethod -Uri $uri -Body $message -Headers $headers -Method "Post" -UseBasicParsing
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Python"
|
=== "Python"
|
||||||
|
|
|
@ -46,6 +46,7 @@ to [@Joeharrison94](https://github.com/Joeharrison94) for the input.
|
||||||
|
|
||||||
* Improved caddy configuration (no ticket, thanks to @Stnby)
|
* Improved caddy configuration (no ticket, thanks to @Stnby)
|
||||||
* Additional multi-line examples on the [publish page](https://ntfy.sh/docs/publish/) ([#234](https://github.com/binwiederhier/ntfy/pull/234), thanks to [@aTable](https://github.com/aTable))
|
* Additional multi-line examples on the [publish page](https://ntfy.sh/docs/publish/) ([#234](https://github.com/binwiederhier/ntfy/pull/234), thanks to [@aTable](https://github.com/aTable))
|
||||||
|
* Fixed PowerShell auth example to use UTF-8 ([#242](https://github.com/binwiederhier/ntfy/pull/242), thanks to [@SMAW](https://github.com/SMAW))
|
||||||
|
|
||||||
**Additional translations:**
|
**Additional translations:**
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue