Свойство | Type | Description | |
---|---|---|---|
$apiBase | string | The API's URL. | |
$client | The Guzzle HTTP Client. |
Méthode | 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. |
Méthode | 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 | |
Résultat | array |
public getMessage ( string | integer $messageId ) : |
||
$messageId | string | integer | |
Résultat |
protected postRequest ( ) : mixed | ||
Résultat | mixed |
protected processReceive ( $rawMessage ) : mixed | ||
$rawMessage | ||
Résultat | mixed |