Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 623 Bytes

Readme.md

File metadata and controls

23 lines (17 loc) · 623 Bytes

Shoutbox

Example plugin for the Auth API.

You can find the source code for the backend of the shoutbox on Github as well.

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
// ...