a RESTful API to send push notifications via the Pushbullet API
- Spring - Web Framework
- Maven - Dependency Management
- Pushbullet - Push API
Clone the repository
git clone https://github.com/amandakys/pushbullet_notifications.git
inside /pushbullet_notifications folder
./mvnw spring-boot:run
use cURL terminal command. replace "user1" with desired username string and "pushbullet_access_token" with relevant access token from pushbullet.
curl -d '{"username":"user1", "accessToken":"pushbullet_access_token"}' -X POST http://localhost:8080/create -H "content-type: application/json"
http://localhost:8080/users
replace user1 with desired username
http://localhost:8080/users/user1
use cURL terminal command.
curl -d '{"username":"user1"}' -X POST http://localhost:8080/push -H "content-type: application/json"