Код: Выделить всё
$recordings = $client->account->recordings;
foreach ($client->account->calls->getIterator(0, 50, array( 'From' => $phoneNumber )) as $call) {
$recordings = $call->recordings;
$recordings = $recordings->client->last_response->calls;
dd($recordings); return $recordings; }
Код: Выделить всё
Services_Twilio_AutoPagingIterator
{#696 ▼
#generator: array:2 [▶]
#args: null
#items: array:9 [▼
0 => Services_Twilio_Rest_Recording
{#704 ▼
#subresources: array:1 [▶]
+"client": Services_Twilio
{#643}
+"sid": ""
+"account_sid": ""
+"call_sid": ""
+"duration": "9"
+"date_created": ""
+"api_version": "2010-04-01"
+"date_updated": ""
+"status": "completed"
+"source": null
+"channels": 1
+"price": "-0.00250"
+"price_unit": "USD"
+"uri": "/2010-04-01/Accounts//Recordings/R"
}
1 => Services_Twilio_Rest_Recording {#706 ▶}
}
Подробнее здесь: https://stackoverflow.com/questions/388 ... -on-twilio