Files
mirotalk/app/api/token/token.sh
T
2024-03-18 09:31:09 +01:00

11 lines
392 B
Bash
Executable File

#!/bin/bash
API_KEY_SECRET="mirotalkp2p_default_secret"
MIROTALK_URL="https://p2p.mirotalk.com/api/v1/token"
#MIROTALK_URL="http://localhost:3000/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