Skip to content

Additional API calls#3

Open
stipoy wants to merge 1 commit intoespresso-dev:masterfrom
stipoy:stipoy
Open

Additional API calls#3
stipoy wants to merge 1 commit intoespresso-dev:masterfrom
stipoy:stipoy

Conversation

@stipoy
Copy link
Copy Markdown

@stipoy stipoy commented Feb 4, 2021

Added POST support in _makeCall;

Added additional API calls :
Added creareUserMeeting()
Added getUserInfo()

Comment thread src/Zoom.php
curl_setopt($ch, CURLOPT_HEADER, true);

if ($method === 'POST') {
array_push($headerData, 'Content-Type:application/json');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the tab spacing here

Comment thread src/Zoom.php
throw new ZoomException("Error: getLoginUrl()");
}

public function createUserMeeting($id, $topic = 'New Meeting', $type = '1', $password = 'MTGPASS', $agenda = 'Start Meeting')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should be defaulting to these values.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i'll remove default values. think i'll add the other params too.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, thanks.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps passing an array of meeting params, or creating a ZoomMeeting class or something like that, may reduce the number of params you need to pass. Also, this would solve the typical order-of-parameters dilemma.

With the array solution, you could then (in the future, if needed) add default parameters with array_merge.

Copy link
Copy Markdown
Collaborator

@hermanschutte hermanschutte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Could you please check my comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants