plivo-php
plivo-php copied to clipboard
Plivo PHP Helper Library
Some countries haven't toll free rate, like France and it returns an exception
https://github.com/plivo/plivo-php/issues/143 This is an easy and unintrusive way to address this issue due to the explicit check for an empty array in the MessageCreateResponse __construct (src/Plivo/Resources/Message/MessageCreateResponse.php:25) short of the API...
The assumption that the "invalid_number" index of the $responseContent array throws a warning. If you are running this code inside of a try, catch block that catches either \Exception or...