Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Send a Test Message to confirm configuration
# My Push Bullet Access Token
# Created via Profile Page
$accessToken = 'o.oy3Un8Zb56FjJa8cQVNQ1234567890'
# Push Bullet API URI
$apiURI = ""
# Web Request Header
$header = @{"Access-Token" = $accessToken
'Content-Type' = "application/json"
$content = @{
"type" = "note"
"title" = "MIM Azure Function Error"
"body" = "Test Message"
$body = $content | ConvertTo-Json
# Test POST
$notification = Invoke-RestMethod -Method Post -Headers $header -Uri ($apiURI +"v2/pushes") -Body $body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.