Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salahsheikh/jpushbullet
A Java library to interface the Pushbullet REST API
https://github.com/salahsheikh/jpushbullet
api pushbullet pushbullet-api rest-api
Last synced: 1 day ago
JSON representation
A Java library to interface the Pushbullet REST API
- Host: GitHub
- URL: https://github.com/salahsheikh/jpushbullet
- Owner: salahsheikh
- Created: 2014-04-29T18:14:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T18:25:48.000Z (almost 8 years ago)
- Last Synced: 2025-01-02T01:10:02.145Z (7 days ago)
- Topics: api, pushbullet, pushbullet-api, rest-api
- Language: Java
- Homepage:
- Size: 64.5 KB
- Stars: 26
- Watchers: 6
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jpushbullet
===========A simple library to interface/use/access the Pushbullet API (v2) written with Java 8.
Current feature set:#### Ephemerals: sending clipboard, notification, and sms pushes
#### Chat: list, create, update, delete.
#### Device: list, create, update, delete.
#### Push: list, create, update, delete, delete all
#### Subscriptions: list, create, update, get channel info
#### User: get current user infoDependencies:
=============
* [Apache HttpClient library](http://hc.apache.org/httpcomponents-client-ga/)
* [Google gson library](https://code.google.com/p/google-gson/)
* [SLF4J Simple Logging Facade for Java](http://www.slf4j.org/)How to use:
===========jpushbullet is intended to be very simple and lightweight. To start, you need to create a PushbulletClient.
```
PushbulletClient client = new PushbulletClient(api_key);
This creates the connection to Pushbullet's REST API and supplies the api_key used to identify users (as passed into the constructor). FYI, you can get the api key from https://www.pushbullet.com/account when logged in.Chats:
getChats()
returns a list of all chatscreateChat(the email to chat with)
returns data about the recipientupdateChat(identifing key of the chat, boolean muted)
returns data about the recipientdeleteChat(identifing key of the chat)
Device:
listDevices()
returns a list of all devicesgetDevices()
returns a list of cached devicescreateDevice(nickname of device, model of device, manufacturer, app version of pushbullet, icon ("desktop", "browser", "website", "laptop", "tablet", "phone", "watch", "system", "ios"), whether the device has SMS capability)
returns the new devicedeleteDevice(String iden)
Subscriptions:
listSubscriptions()
returns a list of all SubscriptionscreateSubscription(the channel tag)
returns a Subscription objectupdateSubscription(subscription iden, boolean muted)
returns the updated Subscription objectdeleteSubscription(subscription iden)
channelInfo(channelTag, whether the method should return recent pushes)
returns a ChannelInfo objectGeneral:
client.sendNotePush(title, body);client.sendLinkPush(title, body, link);
sendFilePush(a message, exact filename including file extension, the file MIME type, a java File object that referneces the file)
Ephemerals:
For sms:
sendSMSPush(phone number, message, package name of application, targetDeviceIden)For notification:
sendNotificationPush(notification title, the notification message, the name of the application, the version of the application, whether the notification is dismissable, whether the phone is rooted or not, a JPG icon that is base64 encoded, the notification id, name of the application package, the identity of the device where the notification is coming from)For clipboard:
sendClipboardPush(the contents that should be transferred to the clipboard)
```Thank you for using this!