An open API service indexing awesome lists of open source software.

https://github.com/meinside/pb-send

A small golang application that sends messages through Pushbullet
https://github.com/meinside/pb-send

golang pushbullet

Last synced: over 1 year ago
JSON representation

A small golang application that sends messages through Pushbullet

Awesome Lists containing this project

README

          

# pb-send

Send messages through [Pushbullet](https://docs.pushbullet.com/) API.

## Install

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

## Configuration

Get your access token from [here](https://www.pushbullet.com/#settings/account),

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

```json
{
"access_token": "PUT_YOUR_ACCESS_TOKEN_HERE"
}
```

### Using Infisical

You can use [Infisical](https://infisical.com/) for retrieving your access token:

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

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

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

## Run

```bash
$ pb-send [any message to send]
```

## License

MIT