twilio / twilio-php

A PHP library for communicating with the Twilio REST API and generating TwiML.
MIT License
1.57k stars 562 forks source link

Missing filters for call logs resource #693

Closed slash686 closed 3 years ago

slash686 commented 3 years ago

Issue Summary

Twilio call resource is missing some filters described in docs (https://www.twilio.com/docs/voice/api/call-resource#read-a-call-resource), e.g. direction, price e.t.c

Twilio\Rest\Api\V2010\Account\CallList::page(...) contains list of currently available filtering options. Sadly it is missing some of them.

Code Snippet

$client = app(Twilio\Rest\Client::class);

$calls = $client->calls->read([
    'direction' => 'trunking-originating',
], 20);

Running this snippet will return all calls without any filtering applied.

Technical details:

eshanholtz commented 3 years ago

Hi @slash686

I'm looking at the documentation, and I'm not seeing direction as an filterable parameter on listing commands.

JenniferMah commented 3 years ago

Closing due to inactivity. Please open a new issue if you still need help.