We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b2e383 + 763eafd commit f971377Copy full SHA for f971377
docs/publish.md
@@ -3136,11 +3136,13 @@ with the token `tk_AgQdq7mVBoFD37zQVN29RhuMzNIz2`:
3136
=== "PowerShell 7+"
3137
``` powershell
3138
# With PowerShell 7 or greater, we can use the Authentication and Token parameters
3139
+ # The Token parameter must be in the form of a System.Security.SecureString
3140
+
3141
$Request = @{
3142
Method = "POST"
3143
URI = "https://ntfy.example.com/mysecrets"
- Authorization = "Bearer"
- Token = "tk_AgQdq7mVBoFD37zQVN29RhuMzNIz2"
3144
+ Authentication = "Bearer"
3145
+ Token = ConvertTo-SecureString "tk_AgQdq7mVBoFD37zQVN29RhuMzNIz2" -AsPlainText
3146
Body = "Look ma, with auth"
3147
}
3148
Invoke-RestMethod @Request
0 commit comments