rtmtokenbuilder2

package
v0.0.0-...-374cd21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildToken

func BuildToken(appId string, appCertificate string, userId string, expire uint32) (string, error)

Build the RTM token.

appId: The App ID issued to you by Agora. Apply for a new App ID from

Agora Dashboard if it is missing from your kit. See Get an App ID.

appCertificate: Certificate of the application that you registered in

the Agora Dashboard. See Get an App Certificate.

userId: The user's account, max length is 64 Bytes. expire: represented by the number of seconds elapsed since now. If, for example, you want to access the

Agora Service within 10 minutes after the token is generated, set expire as 600(seconds).

return The RTM token.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL