Initial commit
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
# How to use
|
||||
## Fill in your vendor information
|
||||
Open *DemoServer.js* and replace <YOUR APP ID> and <YOUR APP CERTIFICATE> 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
|
||||
|
||||
```shell
|
||||
npm i
|
||||
node DemoServer.js
|
||||
```
|
||||
|
||||
## Generate Token
|
||||
### Generate RTC Token
|
||||
```shell
|
||||
curl http://localhost:8080/rtcToken?channelName=test
|
||||
```
|
||||
|
||||
### Generate RTM Token
|
||||
```shell
|
||||
curl http://localhost:8080/rtmToken?account=testAccount
|
||||
```
|
||||
Reference in New Issue
Block a user