A Simple Java API to use for Bytebin
- Bytebin - Made by lucko
<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>
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!
}
}MIT of course