Skip to content

Instantly share code, notes, and snippets.

@eclarke
Created September 15, 2018 15:17
Show Gist options
  • Save eclarke/569bb5d91d2a4a46d0a1869a7ea8d91a to your computer and use it in GitHub Desktop.
Save eclarke/569bb5d91d2a4a46d0a1869a7ea8d91a to your computer and use it in GitHub Desktop.
sends a push with message contents given as arguments
#!/bin/bash
curl --header 'Access-Token: <your_access_token_here>' \
--header 'Content-Type: application/json' \
--data-binary '{"body":":)","title":"$@","type":"note"}' \
--request POST \
https://api.pushbullet.com/v2/pushes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment