eteich
eteich

Reputation: 537

StatusCallback using Messaging Api

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

Answers (1)

eteich
eteich

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

Related Questions