I am using Twilio PHP library.
I would like to get the total count of messages available in an account.
I use the following code:
$client = new Services_Twilio($AccountSid, $AuthToken);
$messages = $client->account->messages ;
echo count($messages);
The count always displays as one (1). Let me know how to get the total count.
Thanks.
Twilio evangelist here.
I'd suggest using a Usage Record to get this information:
Hope that helps.