Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 2.19 KB

File metadata and controls

55 lines (44 loc) · 2.19 KB

Bark-Java-SDK

GitHub stars GitHub forks GitHub issues GitHub license GitHub All Releases GitHub release (latest SemVer) Maven Central Hits

Using

<dependency>
    <groupId>top.misec</groupId>
    <artifactId>bark-java-sdk</artifactId>
    <version>0.0.3</version>
</dependency>

Quick Start

SimplePush

BarkPush pusher=new BarkPush("https://xxx.xxx.xx/push","xxxxx");
assertNotNull(pusher);
pusher.simplePush("hello word");

EncryptedPush

Encryption encryption = Encryption.builder()
        .mode("ECB")
        .key("12345678901234561234567890123456")
        .build();
BarkPush pusher = new BarkPush("", "", encryption);
pusher.encryptionPush("123");
Encryption encryption = Encryption.builder()
        .mode("CBC")
        .key("12345678901234561234567890123456")
        .iv("1111111111111111")
        .build();

BarkPush pusher = new BarkPush("", "", encryption);
pusher.encryptionPush("123");