/VACEfron4J

Primary LanguageJavaApache License 2.0Apache-2.0

VACEfron4J

A pure Java™ wrapper for VACEfron's API.
The client methods may throw IOException's, probably because of connectivity issues.

Examples

// This will return the image as an Java byte[]
byte[] heavenBytes = VACEfronClient.heaven("https://cdn.discordapp.com/avatars/326260487220363275/fa5a18f0fe7c1b4692fc2275fd8493a9.png?size=4096");
RankcardBuilder builder = new RankcardBuilder();
// Note that this values are for example
Rankcard card = builder
      .setUsername("VACEfron")
      .setAvatar("avatar url")
      .setLevel(5)
      .setRank(5)
      .setCurrentXp(500)
      .setNextLevelXp(1000)
      .setPreviousLevelXp(500)
      // Optional
      .setCustomBackground(BackgroundResolvable.fromColor(Color.GREEN))
      .setXpColor(Color.RED)
      .setBoosting(true)

      .build();
                
byte[] rankcardImage = VACEfronClient.rankcard(card);

Downloads

Download the latest release from the github releases section and then add it to your build.
Dependencies are shaded in the jar, so you don't need to take care of them for now.