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