Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create meeting on working #12

Open
tufailkhan45 opened this issue Feb 5, 2024 · 5 comments
Open

Create meeting on working #12

tufailkhan45 opened this issue Feb 5, 2024 · 5 comments

Comments

@tufailkhan45
Copy link

Getting the following response on createMeeting function

array:2 [ // app/Http/Controllers/MeetingController.php:81
  "status" => false
  "message" => """
    Client error: `POST https://api.zoom.us/v2/users/me/meetings` resulted in a `400 Bad Request` response:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><code>300</code><message>Validation Failed.</message><err (truncated...)

    """
]

I've checked https://zoom.us/oauth/token API it is working fine returning a token but the users/me/meetings not working.

@gokhanatalay
Copy link

I have a same problem.

@dennissvu
Copy link

+1

@JubaerHossain
Copy link
Owner

I apologize for the late reply. It may be that something went wrong with the credentials. Credentials should be recreated following the documentation. 

@abdelazizmirasoft
Copy link

abdelazizmirasoft commented Jul 14, 2024

I have the same problem!
I recreated the credentials but still facing the same issue:

array:2 [ // app/Services/VideoConference/ZoomService.php:30
  "status" => false
  "message" => """
    Client error: `POST https://api.zoom.us/v2/users/me/meetings` resulted in a `400 Bad Request` response:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><code>300</code><message>Validation Failed.</message><err (truncated...)

    """
]

@abdelazizmirasoft
Copy link

After some debugging, I realized that this issue can be due to the following reasons:

  1. Wrong Credentials: In my case, the environment variables ZOOM_ACCOUNT_ID, ZOOM_CLIENT_KEY, and ZOOM_CLIENT_SECRET were not properly loaded into the config file, resulting in null values. Please double-check that your credentials are correctly loaded.

  2. Incorrect Data Array: Ensure that the data array you inject into the createMeeting method uses the correct attributes with the appropriate data types. Here is a working example that returned a positive response from the Zoom API:

$meetings = Zoom::createMeeting([
    'topic' => 'Weekly Team Meeting',
    'type' => 2, // 2 for scheduled meeting
    'start_time' => Carbon::parse('2024-07-20T10:00:00')->toIso8601String(),
    'duration' => 30, // duration in minutes
]);

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

No branches or pull requests

5 participants