Property | Type | Description | |
---|---|---|---|
$apiBase | string | The API's URL. | |
$apiEnding | array | The ending of the URL that all requests must have. | |
$client | The Guzzle HTTP Client. |
Method | Description | |
---|---|---|
__construct ( |
Constructs a new instance. | |
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 ( $rawMessage ) : mixed | |
Returns an IncomingMessage object with it's properties filled out. |
public __construct ( |
||
$client |
public checkMessages ( array $options = [] ) : array | ||
$options | array | |
return | array |
public getMessage ( string | integer $messageId ) : |
||
$messageId | string | integer | |
return |
protected processReceive ( $rawMessage ) : mixed | |
||
$rawMessage | ||
return | mixed | |
public send ( |
||
$message |
protected array $apiEnding | ||
return | array |