Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson
Created September 4, 2017 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenjrobinson/920fdac3fa9ec810ef4e14ca3c45d752 to your computer and use it in GitHub Desktop.
Save darrenjrobinson/920fdac3fa9ec810ef4e14ca3c45d752 to your computer and use it in GitHub Desktop.
Test Push Bullet API Call
# My Push Bullet Access Token
# Created via Profile Page https://www.pushbullet.com/#settings/account
$accessToken = 'o.oy3Un8Zb56FjJa8cQVNQuI1234567890'
# Push Bullet API URI
$apiURI = "https://api.pushbullet.com/"
# Web Request Header
$header = @{"Access-Token" = $accessToken}
# Test GET for my profile details
$me = Invoke-RestMethod -Method Get -Headers $header -Uri ($apiURI +"v2/users/me")
$me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment