Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ At present we cover the following modules
"duration" => 60, // in minutes
"timezone" => 'Asia/Dhaka', // set your timezone
"password" => 'set your password',
"user" => 'user@example.com', // if a paid Zoom account has multiple users, you can pass a specific user ID to designate them as the host
"start_time" => 'set your start time', // set your start time
"template_id" => 'set your template id', // set your template id Ex: "Dv4YdINdTk+Z5RToadh5ug==" from https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingtemplates
"pre_schedule" => false, // set true if you want to create a pre-scheduled meeting
Expand Down
4 changes: 3 additions & 1 deletion src/Zoom.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ protected function getAccessToken()
// create meeting
public function createMeeting(array $data)
{
$user = (isset($data['user'])) ? $data['user'] : 'me';

try {
$response = $this->client->request('POST', 'users/me/meetings', [
$response = $this->client->request('POST', 'users/' . $user . '/meetings', [
'json' => $data,
]);
$res = json_decode($response->getBody(), true);
Expand Down