Files
nirvana-server/node_modules/agora-access-token/server/README.md
T
2021-12-29 01:57:42 -08:00

546 B

How to use

Fill in your vendor information

Open DemoServer.js and replace and with your value

// Fill the appID and appCertificate key given by Agora.io
var appID = "<YOUR APP ID>";
var appCertificate = "<YOUR APP CERTIFICATE>";

Install Dependencies

npm i
node DemoServer.js

Generate Token

Generate RTC Token

curl http://localhost:8080/rtcToken?channelName=test

Generate RTM Token

curl http://localhost:8080/rtmToken?account=testAccount