pavog / Multicraft-api

Multicraft API in Java
MIT License
2 stars 0 forks source link

Multicraft API client for Java

Build Status Coverage Status Codacy Badge

Requirements

To use the Multicraft API client, the following things are required:

Maven Installation

By far the easiest way to install the Multicraft Java API client is to include it in your pom.xml within your Maven project.

To do so add this repository to your pom.xml:

<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
  <!-- Other repositories... -->
</repositories>

And this dependeny:

<dependencies>
  <dependency>
      <groupId>com.github.pavog</groupId>
      <artifactId>multicraft-api</artifactId>
      <version>1.0.0-SNAPSHOT</version>
    </dependency>
  <!-- Other dependencies ... -->
</dependencies>

Please change the <version>1.0.0-SNAPSHOT</version> to the newest version. You can find the newest version on the github releases.

Manual Installation

If you're not familiar with using maven we've added a JAR file to the releases which you can add manually to your project.

Getting started

Initializing the Multicraft API client, and setting your panel url, username and API key.

String testApiUrl = "https://panel.testurl.com/api.php";
String testApiUsername = "username";
String testApiKey = "api-key";
MulticraftAPI api = new MulticraftAPI(testApiUrl, testApiUsername, testApiKey);

API documentation

If you wish to learn more about the API, please visit the Multicraft Developer Portal. API Documentation is available in English and only for the PHP methods.

Contribute

Want to help us make our API client even better? We take pull requests and issue reports.

License

MIT License. Made by Paul Vogel