Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Send a Test Message to confirm configuration
# My Push Bullet Access Token
# Created via Profile Page https://www.pushbullet.com/#settings/account
$accessToken = 'o.oy3Un8Zb56FjJa8cQVNQ1234567890'
# Push Bullet API URI
$apiURI = "https://api.pushbullet.com/"
# 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
$notification
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.