This document provides details about the Token Generation API endpoints with curl examples for testing.
Generates a token based on the provided parameters.
POST /token/getNew
{
"tokenType": "rtc|rtm|chat",
"channel": "string",
"uid": "string",
"role": "publisher|subscriber",
"expire": int
}
{
"token": "string"
}
Replace localhost:8080
with your server's address if different.