Skip to content

Dart wrapper for TShock MOD for Terraria Servers using REST APIs

License

Notifications You must be signed in to change notification settings

KohlsAdrian/tshock_server_rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tshock_server_rest

A Dart wrapper for TShock Terraria Servers REST APIs

App Client

Google Play App Client

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();

Structure

TShockServerRESTServer has contexts of functionalities

  • Users

  • Bans

  • Players

  • World

  • Groups

Each context has it own REST API functions

TShockServerStatus.instance.(context).MyFunctions();

Geral context is just

TShockServerStatus.instance.MyFunctions();

About

Dart wrapper for TShock MOD for Terraria Servers using REST APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages