-
-
Save darrenjrobinson/920fdac3fa9ec810ef4e14ca3c45d752 to your computer and use it in GitHub Desktop.
Test Push Bullet API Call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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