Reputation: 537
I've scoured the web searching for the proper way to add the statuscallback url with the messaging api in php.
$sms = $client->account->messages->sendMessage($from, $to, $body);
I've tried using an keyed array after the $body
variable, tried sending an image after the $body
variable then using just a link and a keyed array with no success.
Any insight would be greatly appreciated.
Upvotes: 0
Views: 103
Reputation: 537
I scoped around the Services_Twilio_Rest_Messages class and added an extra null
input after the message body with the keyed array like so:
$client->account->messages->sendMessage($from, $to, $body, null, array('StatusCallback' => '{callback url}'));
Upvotes: 2