Git Product home page Git Product logo

pushbullet-java-8's Introduction

Pushbullet library for Java 8

This is an inofficial pushbullet library for Java 8.

Javadoc

Javadoc is located here.

Maven

Dependency Status Build Status

This library can be used with Maven, it's located in the central repository:

<dependency>
    <groupId>com.github.sheigutn</groupId>
    <artifactId>pushbullet-java-8</artifactId>
    <version>1.3.4</version>
</dependency>

To use SNAPSHOT versions, add this to your pom.xml:

<repository>
    <id>sonatype-nexus-snapshots</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>

Usage

String apiToken = ...;
Pushbullet pushbullet = new Pushbullet(apiToken);

For end-to-end encryption, you have to install the Unlimited Strength Jurisdiction Policy Files first. These are available here.

String apiToken = ...;
String password = ...;
Pushbullet pushbullet = new Pushbullet(apiToken, password);

Donate

If you want to donate to me, just use my bitcoin address: 1K3yoaHnbrYSNwK1d8suDxcEgwQD4Y9Fso

pushbullet-java-8's People

Contributors

sheigutn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pushbullet-java-8's Issues

SNAPSHOT not working

Adding the suggested section to pom.xml does not work, you get an error message for incorrect POM.

Binary File

I have problems with import in Eclipse.

Maybe you can upload the .jar with all depency included?

illegalKeySizeException with Device.sendSMS()

Hey,

Great API.
I keep hitting one issue though. When I try to use Device.sendSMS() it returns "InvalidKeyException: Illegal key size"
The code that leads up to the sendSMS line is below:

String message="#########";
String number="+447#########";
String token="###########";
String passwd="########";


Pushbullet pushB=new Pushbullet(token,passwd);
Device phone=pushB.getDevice(config.getProperty("PhoneID"));
phone.sendSMS(number, message);

Also phone.isActive() returns true
and phone.pushNote() works perfectly.

The error is then thrown on the sendSMS() line. Full Stack trace below...

java.security.InvalidKeyException: Illegal key size at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039) at javax.crypto.Cipher.implInit(Cipher.java:805) at javax.crypto.Cipher.chooseProvider(Cipher.java:864) at javax.crypto.Cipher.init(Cipher.java:1396) at javax.crypto.Cipher.init(Cipher.java:1327) at com.github.sheigutn.pushbullet.cryptography.Encryption.encrypt(Encryption.java:102) at com.github.sheigutn.pushbullet.cryptography.EphemeralEncryptionHandler$EncryptionEphemeralTypeAdapter.write(EphemeralEncryptionHandler.java:42) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:112) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:239) at com.google.gson.Gson.toJson(Gson.java:661) at com.google.gson.Gson.toJson(Gson.java:640) at com.google.gson.Gson.toJson(Gson.java:595) at com.google.gson.Gson.toJson(Gson.java:575) at com.github.sheigutn.pushbullet.http.defaults.post.SendEphemeralRequest.applyBody(SendEphemeralRequest.java:39) at com.github.sheigutn.pushbullet.http.defaults.post.SendEphemeralRequest.applyBody(SendEphemeralRequest.java:14) at com.github.sheigutn.pushbullet.Pushbullet.executeRequest(Pushbullet.java:791) at com.github.sheigutn.pushbullet.Pushbullet.pushEphemeral(Pushbullet.java:716) at com.github.sheigutn.pushbullet.Pushbullet.pushEphemeral(Pushbullet.java:707) at com.github.sheigutn.pushbullet.items.device.Device.sendSMS(Device.java:148) at pushBullet.PushBulletBot.sendPM(PushBulletBot.java:82)

Request examples

Could you kindly write an example of sending and receiving notes?
Thanks

How to implement without Maven?

Hi, I'm trying to implement this on my console application, a project without Maven. I downloaded all the dependencies from the JARs files, but when it compiles I get a lot of errors.

In ListUtil class, fullList method, I get an error saying that the getCursor() is not implemented. This call is from ListResponse.

Other case that happened is on the Pushbullet class on gson property. It gave this error:

The constructor PushbulletContainerPostProcessor(Pushbullet) is undefined

Could you help me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.