Property | Type | Description | |
---|---|---|---|
$apiBase | string | The API's URL. | |
$client | The Guzzle HTTP Client. |
Method | Description | |
---|---|---|
__construct ( |
Create the Flowroute 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 | |
---|---|---|
postRequest ( ) : mixed | Creates and sends a POST request to the requested URL. | |
processReceive ( $rawMessage ) : mixed | Creates many IncomingMessage objects and sets all of the properties. |
public __construct ( |
||
$client | The Guzzle Client |
public checkMessages ( array $options = [] ) : array | ||
$options | array | |
return | array |
public getMessage ( string | integer $messageId ) : |
||
$messageId | string | integer | |
return |
protected postRequest ( ) : mixed | ||
return | mixed |
protected processReceive ( $rawMessage ) : mixed | ||
$rawMessage | ||
return | mixed |