Message.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * A single Message
  4. *
  5. * .. php:attr:: date_created
  6. *
  7. * The date the message was created
  8. *
  9. * .. php:attr:: date_updated
  10. *
  11. * The date the message was updated
  12. *
  13. * .. php:attr:: sid
  14. *
  15. * A 34 character string that identifies this object
  16. *
  17. * .. php:attr:: account_sid
  18. *
  19. * The account that sent the message
  20. *
  21. * .. php:attr:: body
  22. *
  23. * The body of the message
  24. *
  25. * .. php:attr:: num_segments
  26. *
  27. * The number of sms messages used to deliver the body
  28. *
  29. * .. php:attr:: num_media
  30. *
  31. * The number of media that are associated with the image
  32. *
  33. * .. php:attr:: subresource_uris
  34. *
  35. * The subresources associated with this message (just Media at the moment)
  36. *
  37. * .. php:attr:: from
  38. *
  39. * The number this message was sent from
  40. *
  41. * .. php:attr:: to
  42. *
  43. * The phone number this message was sent to
  44. */
  45. class Services_Twilio_Rest_Message extends Services_Twilio_InstanceResource {
  46. protected function init($client, $uri) {
  47. $this->setupSubresources(
  48. 'media'
  49. );
  50. }
  51. public function redact() {
  52. $postParams = array('Body' => '');
  53. self::update($postParams);
  54. }
  55. }