meinside / pb-send

A small golang application that sends messages through Pushbullet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pb-send

Send messages through Pushbullet API.

Install

$ go install github.com/meinside/pb-send@latest

Configuration

Get your access token from here,

then create a file named config.json in your $XDG_CONFIG_HOME/pb-send/ directory:

{
  "access_token": "PUT_YOUR_ACCESS_TOKEN_HERE"
}

Using Infisical

You can use Infisical for retrieving your access token:

{
  "infisical": {
    "client_id": "abcd-efgh-ijkl-mnop",
    "client_secret": "0123456789abcdefghijklmnop",

    "workspace_id": "012345abcdefg",
    "environment": "dev",
    "secret_type": "shared",

    "key_path": "/path/to/your/KEY_TO_ACCESS_TOKEN"
  }
}

Run

$ pb-send [any message to send]

License

MIT

About

A small golang application that sends messages through Pushbullet


Languages

Language:Go 100.0%