Property | Type | Description | |
---|---|---|---|
$authToken | The authentication token | ||
$plivo | Plivo\RestAPI | The Plivo Library. |
Method | Description | |
---|---|---|
__construct ( $authId, $authToken ) | Constructs the PlivoSMS 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 Plivo. |
public __construct ( $authId, $authToken ) | ||
$authId | ||
$authToken |
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 ( ) |