1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 00:10:57 +01:00
phorge-phorge/externals/twilio-php/Services/Twilio/Rest/MediaInstance.php
Bob Trahan e96c363eef Add SMS support
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
2014-05-09 12:47:21 -07:00

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);
}
}