mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 02:12:41 +01:00
e96c363eef
Summary: Provides a working SMS implementation with support for Twilio. This version doesn't really retry if we get any gruff at all. Future versions should retry. Test Plan: used bin/sms to send messages and look at them. Reviewers: chad, epriestley Reviewed By: epriestley Subscribers: aurelijus, epriestley, Korvin Maniphest Tasks: T920 Differential Revision: https://secure.phabricator.com/D8930
37 lines
908 B
PHP
Executable file
37 lines
908 B
PHP
Executable file
<?php
|
|
|
|
/**
|
|
* A single Media object. For the definitive reference, see the `Twilio Media
|
|
* Documentation <https://www.twilio.com/docs/api/rest/media>`_.
|
|
*
|
|
* .. php:attr:: sid
|
|
*
|
|
* A 34 character string that identifies this object
|
|
*
|
|
* .. php:attr:: account_sid
|
|
*
|
|
* A 34 character string representing the account that sent the message
|
|
*
|
|
* .. php:attr:: parent_sid
|
|
*
|
|
* The sid of the message that created this media.
|
|
*
|
|
* .. php:attr:: date_created
|
|
*
|
|
* The date the message was created
|
|
*
|
|
* .. php:attr:: date_updated
|
|
*
|
|
* The date the message was updated
|
|
*
|
|
* .. php:attr:: content_type
|
|
*
|
|
* The content-type of the media.
|
|
*/
|
|
class Services_Twilio_Rest_MediaInstance extends Services_Twilio_InstanceResource {
|
|
public function __construct($client, $uri) {
|
|
$uri = str_replace('MediaInstance', 'Media', $uri);
|
|
parent::__construct($client, $uri);
|
|
}
|
|
}
|
|
|