Shoutbox (Auth Example)

A plugin by Miss(Trusted developer)

Shoutbox (Auth Example)
Downloads 243
Updated 10 months ago
Released 3 years ago
Numeric ID 201
Min. Openplanet 1.27.13
Game Trackmania

Example plugin for the Auth API.

The source code is on Github, as well as the source code for the server.

Basic example

The following is the most basic example for getting a token to validate with the Openplanet.dev backend API.

// Start the task to get the token from Openplanet
auto tokenTask = Auth::GetToken();

// Wait until the task has finished
while (!tokenTask.Finished()) {
  yield();
}

// Get the token
string token = tokenTask.Token();

// Send the token to our server
// ...

Changelog

0.3 - 10 months ago

  • Fixed discarded HTTP request error

View all changelogs