Skip to content

Instantly share code, notes, and snippets.

@Serpens
Last active January 12, 2016 08:28
Show Gist options
  • Save Serpens/0a47d902c9175cdc828c to your computer and use it in GitHub Desktop.
Save Serpens/0a47d902c9175cdc828c to your computer and use it in GitHub Desktop.
Pushbullet from Bash
#!/bin/bash
curl --header 'Authorization: Bearer API_KEY_HERE' -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary "{\"type\": \"note\", \"title\": \"$1\", \"body\": \"$2\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment