exaroton

Last updated:

0 purchases

exaroton Image
exaroton Images
Add to Cart

Description:

exaroton

Exaroton API #
Unofficial Exaroton API for Dart
Original Docs:https://developers.exaroton.com/
How to use? #
First you need to install exaroton package to your Flutter project.
flutter pub add exaroton
copied to clipboard
Then you can import the library and declare your API to use Exaroton API's
import 'package:exaroton/exaroton.dart';
copied to clipboard
var exaroton = Exaroton('YOUR_API_KEY');
copied to clipboard

All functions works only with await command.

Now you are ready to use Exaroton. Little Note: all server commands need ServerID in order to use. You can find your ServerID using findServerID() function.
var my_serverID = await exaroton.findServerID();
copied to clipboard
You should recieve a List() something like this.
Server Name - ServerID, Server Name 2 - ServerID2
copied to clipboard
You can find your server id with this Function.
DOCS #
Exaroton API for Dart support 15 Endpoints for now. Here is a quick peek.
var my_accountInfo = await exaroton.accountInfo(data);
var my_account = await exaroton.account();
var my_serverID = await exaroton.findServerID();
var my_servers = await exaroton.servers(ServerID);
var my_serverInfo = await exaroton.serversInfo(ServerID, data);
await exaroton.restartServer(ServerID);
await exaroton.stopServer(ServerID);
await exaroton.startServer(ServerID);
await exaroton.commandToServer(ServerID, command);
await exaroton.changeRAM(ServerID, RamAmount);
await exaroton.setMOTD(ServerID, MOTD);
var my_serverRam = await exaroton.getRAM(ServerID);
var my_serverLog = await exaroton.getLog(ServerID);
var my_serverLogUrl = await exaroton.shareLog(ServerID);
var my_serverMOTD = await exaroton.getMOTD(ServerID);

copied to clipboard
Account Info #
var my_accountInfo = await exaroton.accountInfo(data);
copied to clipboard
Takes one argument, then give you a String back.
You can use:

'credits' to get your credits.
'email' to get your email.
'name' to get your username.
'verified' to check if you are verified.

Account #
var my_account = await exaroton.account();
copied to clipboard
This function works just as like accountInfo. The only difference is, that you don't give any argument and the function gives you back the whole JSON.
Find Server ID #
var my_serverID = await exaroton.findServerID();
copied to clipboard
This function help you to find your Server ID.
Here is the output: Server Name - ServerID, Server Name 2 - ServerID2
Servers Info #
var my_serverInfo = await exaroton.serversInfo(ServerID, data);
copied to clipboard
This function needs your Server ID to work. Work just as like the accountInfo but now it gives you back the server info.
You can use:

'name' to get your server name.
'address' to get your server address.
'motd' to get your server motd.
'status' to check your server status. Server Status
'host' to get your host ip.
'maxplayers' to get your maximum player number.
'playercount' to get your currently playing player number.
'playerlist' to get your currently playing player list.
'software' to get your servers software details.
'share' to find if your server has shared option.

Servers #
var my_servers = await exaroton.servers(ServerID);
copied to clipboard
This function works just as like serverInfo. The only difference is, that you don't give any argument and the function gives you back the whole JSON. You need to provide a ServerID in order to work.
Get Ram #
var my_serverRam = await exaroton.getRAM(ServerID);
copied to clipboard
You can use this function to get your RAM Amount. You need to provide a ServerID in order to work.
Get Motd #
var my_serverMOTD = await exaroton.getMOTD(ServerID);
copied to clipboard
You can use this function to get your MOTD. You need to provide a ServerID in order to work.
Get Log #
var my_serverLog = await exaroton.getLog(ServerID);
copied to clipboard
You can use this function to get your Log. You need to provide a ServerID in order to work.
Get Log Url #
var my_serverLogUrl = await exaroton.shareLog(ServerID)
copied to clipboard
You can use this function to get your Log Url. You need to provide a ServerID in order to work.
Start Server #
await exaroton.startServer(ServerID);
copied to clipboard
You can use this function to start your server. You need to provide a ServerID in order to work.
Stop Server #
await exaroton.stopServer(ServerID);
copied to clipboard
You can use this function to stop your server. You need to provide a ServerID in order to work.
Restart Server #
await exaroton.restartServer(ServerID);
copied to clipboard
You can use this function to restart your server. You need to provide a ServerID in order to work.
Command To Server #
await exaroton.commandToServer(ServerID, command);
copied to clipboard
You can use this function to send commands to your server. You need to provide a ServerID in order to work.
You can use any Minecraft commands with this functions, such as:

gamemode 1 @a
gamerule KeepInventory true
time set day

Change Ram #
await exaroton.changeRAM(ServerID, RamAmount);
copied to clipboard
You can use this function to change ram on your server. You need to provide a ServerID in order to work and you need to provide a ram amount in Strings. Maximum you can use is 12.
Change Motd #
await exaroton.setMOTD(ServerID, MOTD);
copied to clipboard
You can use this function to change motd of your server. You need to provide a ServerID in order to work and you need to provide a String to determine your motd.
Contributions #
Feel free to fork and use my project, or help me to develope!
Exaroton API #
If there is any legal problems, you can reach me through [email protected]

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.