4players/odin-tokens

A lightweight token generator for 4Players ODIN

v1.2.0 2023-06-07 10:54 UTC

This package is auto-updated.

Last update: 2024-10-07 14:07:05 UTC


README

This is a lightweight package to generate API keys and tokens used by 4Players ODIN.

4Players ODIN is a cross-platform software development kit (SDK) that enables developers to integrate voice and video chat technology into multiplayer games, apps and websites.

Online Documentation

Flowchart

Example

use FourPlayers\Odin\TokenGenerator;

$accessKey = "<YOUR ACCESS KEY HERE>";
$generator = new TokenGenerator($accessKey);
$token = $generator->createToken("my room", "john doe");

echo "generated a new token: $token\n"

Terminology