[mirotalksfu] - add token endpoint
هذا الالتزام موجود في:
11
app/api/token/token.sh
Executable file
11
app/api/token/token.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
API_KEY_SECRET="mirotalksfu_default_secret"
|
||||
MIROTALK_URL="https://sfu.mirotalk.com/api/v1/token"
|
||||
#MIROTALK_URL="http://localhost:3010/api/v1/token"
|
||||
|
||||
curl $MIROTALK_URL \
|
||||
--header "authorization: $API_KEY_SECRET" \
|
||||
--header "Content-Type: application/json" \
|
||||
--data '{"username":"username","password":"password","presenter":"true", "expire":"1h"}' \
|
||||
--request POST
|
||||
المرجع في مشكلة جديدة
حظر مستخدم