I'm trying to use Guzzle to make multiple requests, but when I try to get the response I keep getting a cURL 77 error
. I'm connecting to Zoom API using JWT. I have an array of 700 items, so for each item, I'm trying to create a request using getAsync
passing the jwt token.
My code is like this:
foreach ($agrupado as $registro) {
$requestArr[$registro['id']] = $cliente->getAsync('https://api.zoom.us/v2/webinars/'.$id.'/registrants/'.$registro['id'], [
'headers' => [
'Authorization' => 'Bearer '.$jwt
]]);
}
$respostas = \GuzzleHttp\Promise\unwrap($requestArr);
var_dump($respostas);
If I do the same request, using the get
method, and same token, it works. I get the response, with no problem. It's very weird.