Skip to content

Instantly share code, notes, and snippets.

@zbicin
Created May 3, 2019 12:56
Show Gist options
  • Select an option

  • Save zbicin/09aeba7d87b115200e7090b7dd209d69 to your computer and use it in GitHub Desktop.

Select an option

Save zbicin/09aeba7d87b115200e7090b7dd209d69 to your computer and use it in GitHub Desktop.
Send Pushbullet notification from CLI
#!/bin/bash
# Source: https://danielgibbs.co.uk/2016/06/send-pushbullet-message-from-bash/
token="<paste token here>"
title=${1:-Default title}
body=${2:-Default body}
curl --silent -u """$token"":" -d type="note" -d body="$body" -d title="$title" 'https://api.pushbullet.com/v2/pushes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment