# Help with api create meeting with php

**URL:** <https://devforum.zoom.us/t/help-with-api-create-meeting-with-php/5189>\
**Category:** API and Webhooks\
**Created:** [July 25, 2019, 8:02pm UTC](https://devforum.zoom.us/t/help-with-api-create-meeting-with-php/5189 "2019-07-25T20:02:54Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [June 2, 2020, 4:07pm UTC](https://devforum.zoom.us/t/help-with-api-create-meeting-with-php/5189/16 "2020-06-02T16:07:01Z")

</div>

Hi @junaidali9559 from our Create a Meeting API docs:

> **[Create a Meeting - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)**
>
> Create a meeting for a user. This API has a daily rate limit of 100 requests per day. Therefore, only 100 Create a Meeting API requests are permitted wi...

This uses the pecl/http2 library:

```php
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"topic":"string","type":"integer","start_time":"string [date-time]","duration":"integer","schedule_for":"string","timezone":"string","password":"string","agenda":"string","recurrence":{"type":"integer","repeat_interval":"integer","weekly_days":"string","monthly_day":"integer","monthly_week":"integer","monthly_week_day":"integer","end_times":"integer","end_date_time":"string [date-time]"},"settings":{"host_video":"boolean","participant_video":"boolean","cn_meeting":"boolean","in_meeting":"boolean","join_before_host":"boolean","mute_upon_entry":"boolean","watermark":"boolean","use_pmi":"boolean","approval_type":"integer","registration_type":"integer","audio":"string","auto_recording":"string","enforce_login":"boolean","enforce_login_domains":"string","alternative_hosts":"string","global_dial_in_countries":["string"],"registrants_email_notification":"boolean"}}');

$request->setRequestUrl('https://api.zoom.us/v2/users/xxxxxxxxxxxx/meetings');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'content-type' => 'application/json',
  'authorization' => 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOm51bGwsImlzcyI6InZlVmFjM1pUUV8tT3JTR1hRaDNvUEEiLCJleHAiOjE1ODczNDU4NTUsImlhdCI6MTU4NzM0MDQ1NX0.UP9SEMsrh10zBfwrIyAeo-pMyOlRYVqXMhW4TGZemM0'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();

```

---

_[View the full topic](https://devforum.zoom.us/t/help-with-api-create-meeting-with-php/5189)._
