Just put this into your pom.xml:
<groupId>de.katzen48</groupId>
<artifactId>HetznerCloud-Java-Client</artifactId>
<version>VERSION</version>
<name>Jitpack/name>
<url>https://jitpack.io</url>
Just put this into your build.gradle:
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
compile group: 'de.katzen48', name: 'HetznerCloud-Java-Client', version: 'VERSION'
}
To use the Client, create an Instance of HetznerCloud using the Builder.
HetznerCloud cloud = new HetznerCloud.Builder().withToken(token).build();
Now you can start by getting some values to test your Application.
HetznerCloud cloud = new HetznerCloud.Builder().withToken(token).build();
Pricing pricing = cloud.getPricing()
for(ServerType type : pricing.getServerTypes())
{
System.out.println(type.getName());
}
This will get us the Names of all available Servers.
You can find the docs here. They will be updated automaticly, so don't worry about it.
Copyright (c) 2018 Katzen48
You are free to use this software for commercial and non-commercial cases. This software is licensed under the GNU General Public License 3.