Property | Type | Description | |
---|---|---|---|
$authToken | string | Holds the Twilio auth token. | |
$twilio | Services_Twilio | The Twilio SDK. | |
$url | string | Holds the request URL to verify a Twilio push. | |
$verify | boolean | Determines if requests should be checked to be authentic. |
Method | Description | |
---|---|---|
__construct ( Services_Twilio $twilio, $authToken, $url, boolean $verify = false ) | Constructs the TwilioSMS object. | |
checkMessages ( array $options = [] ) : array | Checks the server for messages and returns their results. | |
getMessage ( string | integer $messageId ) : |
Gets a single message by it's ID. | |
receive ( mixed $raw ) : |
Receives an incoming message via REST call. | |
send ( |
Sends a SMS message. |
Method | Description | |
---|---|---|
processReceive ( $raw ) | Processing the raw information from a request and inputs it into the IncomingMessage object. | |
validateRequest ( ) | Checks if a message is authentic from Twilio. |
public __construct ( Services_Twilio $twilio, $authToken, $url, boolean $verify = false ) | ||
$twilio | Services_Twilio | |
$authToken | ||
$url | ||
$verify | boolean |
public checkMessages ( array $options = [] ) : array | ||
$options | array | |
return | array |
public getMessage ( string | integer $messageId ) : |
||
$messageId | string | integer | |
return |
protected processReceive ( $raw ) | ||
$raw |
public send ( |
||
$message |
protected validateRequest ( ) |
protected string $authToken | ||
return | string |
protected string $url | ||
return | string |
protected bool $verify | ||
return | boolean |