-
Notifications
You must be signed in to change notification settings - Fork 0
Home
marensovich edited this page Sep 14, 2025
·
15 revisions
Here you can learn how to start using the Pterolib library
Below you can select sections in which you can learn how to obtain the information necessary for the library's operation.
dependencies {
implementation 'me.marensovich:pterolib:1.0.0'
}<dependency>
<groupId>me.marensovich</groupId>
<artifactId>pterolib</artifactId>
<version>1.0.0</version>
</dependency>
public class Main {
public static final String PANEL_ADDRESS = System.getenv("PANEL_ADDRESS");
public static final String PANEL_CLIENT_API = System.getenv("PANEL_CLIENT_API");
public static void main(String[] args){
// Client initialization
PteroClient pteroClient = new PteroClient(PANEL_ADDRESS, PANEL_CLIENT_API);
try {
System.out.println(
// Getting server details by its ID
pteroClient.getServerManagement().getServerDetails("Your server ID")
);
} catch (Exception e) { throw new RuntimeException(e); }
}
}Tip
PANEL_TOKEN you should get in your panel. More
In development, stay tuned for updates
Tip
You can use ClientAPI and ApplicationAPI modules in the same project.
Open your panel site
Click on your account icon
Select the "API Credentials" tab
Fill out the required form and click "CREATE"

Note
The number of characters in the description must be more than 4
Caution
When creating a key, write it down immediately. It will be impossible to view the full key again.
In development, stay tuned for updates