Skip to content

VicTheSlicer/bytebin-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bytebin-java-api

A Simple Java API to use for Bytebin

Maven

<repositories>
    <repository>
        <id>imanity-repo</id>
        <url>https://maven.imanity.dev/repository/imanity-libraries/</url>
    </repository>
</repositories>

<dependency>
    <groupId>org.imanity.paste</groupId>
    <artifactId>bytebin-java-api</artifactId>
    <version>VERSION</version>
    <scope>provided</scope>
</dependency>

Usage

public class BytebinTest {

       public static void main(String[] args) throws PasteConnectException {
           PasteFactory pasteFactory = PasteFactory.create("https://your.bytebin.link"); // Create Factory based on your bytebin server
           
           String key = pasteFactory.write("Yoo this is my content!"); // Write content to your bytebin
           String content = pasteFactory.find(key); // Find content by key from your bytebin
           
           System.out.println(content); // result: Yoo this is my content!
       }

}

License

MIT of course

About

A Simple API to use for Bytebin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages