SmsMessages.php 473 B

123456789101112131415161718
  1. <?php
  2. class Services_Twilio_Rest_SmsMessages
  3. extends Services_Twilio_ListResource
  4. {
  5. public function __construct($client, $uri) {
  6. $uri = preg_replace("#SmsMessages#", "SMS/Messages", $uri);
  7. parent::__construct($client, $uri);
  8. }
  9. function create($from, $to, $body, array $params = array()) {
  10. return parent::_create(array(
  11. 'From' => $from,
  12. 'To' => $to,
  13. 'Body' => $body
  14. ) + $params);
  15. }
  16. }