POST /agora/app
{
"appId": "",
"appCert": "",
"expirationTimeInSec": 600
}
{
"success": true
}
POST /agora/token
{
"appId": "required",
"uid": "",
"channelName": "",
"role": 1
}
{
"token": "result"
}
POST /agora/allowance
{
"email": "",
"appId": ""
}
DELETE /agora/allowance
{
"email": "",
"appId": ""
}
POST /agora/allowance/check
{
"email": "",
"appId": ""
}
result:
{
"result": true
}
or
{
"result": false
}
GET /agora/allowance/user
[
{
"email": "[email protected]",
"appIds": ["aaa1", "aaa2"]
},
{
"email": "[email protected]",
"appIds": ["bbb1"]
}
]