tshock_server_rest

Creator: coderz1093

Last updated:

0 purchases

tshock_server_rest Image
tshock_server_rest Images
Add to Cart

Description:

tshock server rest

tshock_server_rest #
A Dart wrapper for TShock Terraria Servers REST APIs
Getting Started #
TShockServerRESTServer tssr = TShockServerRESTServer.instance;

tssr.init(
'127.0.0.1', // server address
7878, // server rest api port
token, // token created from reast api
isHttps: false, // if the address has certificate protocol
);

/// Checks server status
TShockServerStatus status = await tssr.status();

/// retrive all users from the server
final users = await tssr.users.getAllUsers();
copied to clipboard
Structure #
TShockServerRESTServer has contexts of functionalities


Users


Bans


Players


World


Groups


Each context has it own REST API functions
TShockServerStatus.instance.
Geral context is just
TShockServerStatus.instance.MyFunctions();

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.