Skip to content

firstdarkdev/CurseUpload4J

Repository files navigation

CurseUpload4J

This project is an unofficial JAVA wrapper around the Curseforge Upload API.

It was designed for use with our custom Mod Publishing plugin, but anyone can use it.

Maven Setup

To use this library in your own Project, add the following maven repository:

maven {
    url "https://maven.firstdarkdev.xyz/releases"
}

Next, add the library as a dependency (Replace VERSION with the one above):

badge

implementation "me.hypherionmc.modutils:CurseUpload4j:VERSION"

Example Usage

Before anything, you need to create a new CurseUploadApi client:

public CurseUploadApi uploadApi = new CurseUploadApi(apiKey);

apiKey is your CurseForge Upload API key, and is REQUIRED!

After creating the client, you can access it anywhere using

CurseUploadApi.INSTANCE

See test/java for more examples