[mirotalk] - #209 add JWT, update dep

This commit is contained in:
Miroslav Pejic
2024-02-11 13:12:30 +01:00
parent 41373591c9
commit ceb459b98f
11 changed files with 167 additions and 84 deletions
+6
View File
@@ -26,6 +26,12 @@ async function getJoin() {
screen: false,
hide: false,
notify: true,
token: {
username: 'username',
password: 'password',
presenter: true,
expire: '1h',
},
}),
});
const data = await response.json();
+6
View File
@@ -25,6 +25,12 @@ $data = array(
"screen" => false,
"hide" => false,
"notify" => true,
"token" => array(
"username" => "username",
"password" => "password",
"presenter" => true,
"expire" => "1h",
),
);
$data_string = json_encode($data);
+6
View File
@@ -20,6 +20,12 @@ data = {
"screen": "false",
"hide": "false",
"notify": "true",
"token": {
"username": "username",
"password": "password",
"presenter": "true",
"expire": "1h",
}
}
response = requests.post(
+1 -1
View File
@@ -8,5 +8,5 @@ MIROTALK_URL="https://p2p.mirotalk.com/api/v1/join"
curl $MIROTALK_URL \
--header "authorization: $API_KEY_SECRET" \
--header "Content-Type: application/json" \
--data '{"room":"test","name":"mirotalk","audio":"true","video":"true","screen":"false","hide":"false","notify":"true"}' \
--data '{"room":"test","name":"mirotalk","audio":"true","video":"true","screen":"false","hide":"false","notify":"true","token":{"username":"username","password":"password","presenter":"true", "expire":"1h"}}' \
--request POST