11 lines
392 B
Bash
11 lines
392 B
Bash
#!/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 |