- RtcTokenBuilderSample.cpp: Sample demo for generating an RTC token. You can replace the App ID, App Certificate, channel name, uid (or userAccount) with your own to create your own token. You can also update the our codes based on your real business needs.
- RtmTokenBuilderSample.cpp: Sample demo for generating an RTM token. You can replace the App ID, App Certificate, uid with your own to create your own token. You can also update the our codes based on your real business needs.
NOTE
An RTC Token applies to the following SDKs:
- Agora Native SDK v2.1+
- Agora Web SDK v2.4+
- Agora Recording SDK v2.1+
- Agora RTSA SDK
An RTM Token applies to the Agora RTM SDK. The Agora RTSA SDK supports joining multiple channels. If you join multiple channels at the same time, then you MUST generate a specific token for each channel you join.