Property | Type | Description | |
---|---|---|---|
$apiBase | string | The API's URL. | |
$client | The Guzzle HTTP Client. |
Method | Description | |
---|---|---|
__construct ( |
Create the CallFire 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 | 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 processReceive ( $rawMessage ) : mixed | ||
$rawMessage | ||
return | mixed |
public send ( |
||
$message |