# Curl PHP request producing unwanted repeated requests

**URL:** <https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313>\
**Category:** API and Webhooks\
**Created:** [June 4, 2020, 2:02pm UTC](https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313 "2020-06-04T14:02:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominicpower1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dominicpower1/32/9689_2.png) [@dominicpower1](https://devforum.zoom.us/u/dominicpower1)\
**Post date:** [June 4, 2020, 2:02pm UTC](https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313/1 "2020-06-04T14:02:04Z")

</div>

**Description**  
A clear and concise description of what the question is.  
Using oAuth, JWT, Guzzle or CURL. I have tried this using combination of all of these. I send the request for the meeting and the process just repeats. I end up with a list of meetings before finally, I hit the 100 per day limit.

**Error**  
The full error message or issue you are running into.  
‘{“code”:429,“message”:“You have exceeded the daily rate limit (100) of Meeting Create/Update API requests permitted for this particular user. You may resume these requests at GMT 00:00:00.”}’ _(length=190)_

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT (I have tried OAuth as well)

**Which Endpoint/s?**  
[https://api.zoom.us/v2/users/’.USER\_ID.’/meetings](https://api.zoom.us/v2/users/'.USER_ID.'/meetings)’

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:  
function UseToken($accToken,$order\_id){

$Meet=new Meet;

$arrObj=$Meet-\>gatherOrderDetails($order\_id);

$meetings=count($arrObj);

//var\_dump($arrObj);

```
for($i=0;$i<$meetings;$i++){

//echo("Meetnigs=".$meetings."<br>");

    $ThisMeeting=json_decode($arrObj[$i]);

    $ThisJSON= [

            'topic' => 'Video consultation with Dr. xxxxxxxxxxxxxx',

            'type' => 2,

            'start_time' => $ThisMeeting->start,

            'duration' => 20, // 20 mins

            'agenda'=>$ThisMeeting->topic,  

            'settings' => array(

                'host_video'=>TRUE,

                'participant_video'=>TRUE,

                'cn_meeting'=>FALSE,

                'in_meeting'=>FALSE,

                'join_before_host'=>FALSE,

                'mute_upon_entry'=>FALSE,

                'watermark'=>FALSE,

                'use_pmi'=>FALSE,

                'approval_type'=>0,

                'audio'=>'voip',

                'auto_recording'=>'cloud',

                'enforce_login'=>FALSE,

                'enforce_login_domains'=>FALSE,

                'registrants_email_notification'=>TRUE)

            ];

    $inf=json_encode($ThisJSON,true);

    $curl = curl_init();

    $url = 'https://api.zoom.us/v2/users/'.USER_ID.'/meetings';

    //$curl = curl_init($url);

    curl_setopt_array($curl, array(

        CURLOPT_URL => $url,

        CURLOPT_RETURNTRANSFER => true,

        CURLOPT_ENCODING => "",

        CURLOPT_MAXREDIRS => 10,

        CURLOPT_TIMEOUT => 30,

        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

        CURLOPT_CUSTOMREQUEST => "POST",

        CURLOPT_POSTFIELDS => $inf,

        CURLOPT_HTTPHEADER => array(

        "authorization: Bearer ".$accToken,

        "content-type: application/json"

        ),

    ));r

```

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
Add any other context about the problem here.

---

<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 9, 2020, 9:26pm UTC](https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313/2 "2020-06-09T21:26:00Z")

</div>

Hi @dominicpower1, is there a specific reason you need to send these requests in a for loop?

I’m not particularly familiar with PHP, is there a reason you could imagine this is firing continuously?

---

<div class="post-metadata">

**Author:** ![dominicpower1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dominicpower1/32/9689_2.png) [@dominicpower1](https://devforum.zoom.us/u/dominicpower1)\
**Post date:** [June 10, 2020, 8:47am UTC](https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313/3 "2020-06-10T08:47:34Z")

</div>

Thanks for getting back to me. The loop is only if there are multiple bookings on the same order. Ive checked the output and that part is only firing once.

---

<div class="post-metadata">

**Author:** ![dominicpower1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dominicpower1/32/9689_2.png) [@dominicpower1](https://devforum.zoom.us/u/dominicpower1)\
**Post date:** [June 10, 2020, 2:15pm UTC](https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313/4 "2020-06-10T14:15:38Z")

</div>

Sorry. As regards to possible reasons why. The only thing I could think of is somehow it was a setup issue. If Guzzle and Curl could somehow be cross reacting or I had multiple versions somewhere. It is such a strange result.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 15, 2020, 7:34pm UTC](https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313/5 "2020-06-15T19:34:30Z")

</div>

Hey @dominicpower1,

Make sure you are in bounds of our [create meeting rate limits](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![dominicpower1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dominicpower1/32/9689_2.png) [@dominicpower1](https://devforum.zoom.us/u/dominicpower1)\
**Post date:** [June 15, 2020, 9:50pm UTC](https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313/6 "2020-06-15T21:50:41Z")

</div>

Hi Tommy

The rate is 100 per day. This code is triggering multiple meetings to be created and it is not the loop that is causing it. I have shown the loop only triggers on this code once. I thought it maybe that the setup is not picking up on the reply and so it is sending multiple times?

It has cost me over a week so I am obviously keen to find a solution.

Thanks

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 18, 2020, 7:33am UTC](https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313/7 "2020-06-18T07:33:49Z")

</div>

Hey @dominicpower1,

That is strange! I am not super familiar with PHP so I cannot debug your code. Have you tried googling this issue to see if there is a known issue of Curl PHP request producing unwanted repeated requests?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:07pm UTC](https://devforum.zoom.us/t/curl-php-request-producing-unwanted-repeated-requests/20313/8 "2020-08-21T22:07:45Z")

</div>

Closed on August 21, 2020, 10:07pm UTC


