Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Token generator for building a token server with Python & the Agora RTM/RTC
pip install agora-token-builder
Build token with int
UID:
from agora_token_builder import RtcTokenBuilder
#Build token with uid
token = RtcTokenBuilder.buildTokenWithUid(appId, appCertificate, channelName, uid, role, privilegeExpiredTs)
Build token with string
UserAccount:
from agora_token_builder import RtcTokenBuilder
#Build token with userAccount
token = RtcTokenBuilder.buildTokenWithAccount(appId, appCertificate, channelName, account, role, privilegeExpiredTs)
Build RTM token.
from agora_token_builder import RtmTokenBuilder
token = RtmTokenBuilder.buildToken(appID, appCertificate, userAccount, role, privilegeExpiredTs)
appID
The App ID issued to you by Agora. Apply for a new App ID from the gora 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.
channelName
Unique channel name for the AgoraRTC session in the string format
uid
User ID. A 32-bit unsigned integer with a value ranging from 1 to (232-1). optionalUid must be unique.
userAccount
A unique identifier used for to represent a user account. This value will be a string and can contain numbers, letters and any special characters.
role
Role_Publisher = 1: A broadcaster (host) in a live-broadcast profile. Role_Subscriber = 2: (Default) A audience in a live-broadcast profile.
privilegeExpireTs
Represented by the number of seconds elapsed since 1/1/1970. If, for example, you want to access the Agora Service within 10 minutes after the token is generated, set expireTimestamp as the current
© 2021 Agora.io
This repository is licensed under the MIT license. See LICENSE for details.
FAQs
Agora Token Builder. RTC & RTM
We found that agora-token-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.