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
- Host: GitHub
- URL: https://github.com/meinside/pb-send
- Owner: meinside
- Created: 2019-06-05T02:50:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-19T04:03:08.000Z (over 1 year ago)
- Last Synced: 2025-01-10T16:18:33.785Z (over 1 year ago)
- Topics: golang, pushbullet
- Language: Go
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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