-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.php
37 lines (34 loc) · 785 Bytes
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
include "_bbbapi.php";
$res=call("create", [
"allowStartStopRecording"=>true,
"attendeePW"=>"ap",
"autoStartRecording"=>false,
"meetingID"=>"random-4302986".rand(10,9999),
"moderatorPW"=>"mp",
"name"=>"random-4302986".rand(10,9999),
"record"=>false,
"voiceBridge"=>75501,
"welcome"=>"<br>Welcome to <b>%%CONFNAME%%</b>!",
]);
$room=$res;
print_r($res);
$res=call("join", [
"fullName"=>"Admin",
"meetingID"=>$room[1]["meetingID"],
"password"=>"mp",
"join_via_html5"=>true,
"redirect"=>true,
]);
print_r($res);
$res=call("join", [
"fullName"=>"Member",
"meetingID"=>$room[1]["meetingID"],
"password"=>"ap",
"join_via_html5"=>true,
"redirect"=>true,
]);
print_r($res);
// $res=get($res[1]["url"]);
// print_r($res);
// file_put_contents("join.html", $res[0]);