PHP Class SimpleSoftwareIO\SMS\Drivers\FlowrouteSMS

Inheritance: extends AbstractSMS, implements SimpleSoftwareIO\SMS\Drivers\DriverInterface, use trait SimpleSoftwareIO\SMS\MakesRequests
Afficher le fichier Open project: simplesoftwareio/simple-sms

Protected Properties

Свойство Type Description
$apiBase string The API's URL.
$client GuzzleHttp\Client The Guzzle HTTP Client.

Méthodes publiques

Méthode Description
__construct ( Client $client, $accessKey, $secretKey ) Create the Flowroute instance.
checkMessages ( array $options = [] ) : array Checks the server for messages and returns their results.
getMessage ( string | integer $messageId ) : IncomingMessage Gets a single message by it's ID.
receive ( mixed $raw ) : IncomingMessage Receives an incoming message via REST call.
send ( OutgoingMessage $message ) : void Sends a SMS message.

Méthodes protégées

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.

Method Details

__construct() public méthode

Create the Flowroute instance.
public __construct ( Client $client, $accessKey, $secretKey )
$client GuzzleHttp\Client The Guzzle Client

checkMessages() public méthode

See https://developer.flowroute.com/docs/lookup-a-set-of-messages
public checkMessages ( array $options = [] ) : array
$options array
Résultat array

getMessage() public méthode

Gets a single message by it's ID.
public getMessage ( string | integer $messageId ) : IncomingMessage
$messageId string | integer
Résultat SimpleSoftwareIO\SMS\IncomingMessage

postRequest() protected méthode

Creates and sends a POST request to the requested URL.
protected postRequest ( ) : mixed
Résultat mixed

processReceive() protected méthode

Creates many IncomingMessage objects and sets all of the properties.
protected processReceive ( $rawMessage ) : mixed
$rawMessage
Résultat mixed

receive() public méthode

Receives an incoming message via REST call.
public receive ( mixed $raw ) : IncomingMessage
$raw mixed
Résultat SimpleSoftwareIO\SMS\IncomingMessage

send() public méthode

Sends a SMS message.
public send ( OutgoingMessage $message ) : void
$message SimpleSoftwareIO\SMS\OutgoingMessage
Résultat void

Property Details

$apiBase protected_oe property

The API's URL.
protected string $apiBase
Résultat string

$client protected_oe property

The Guzzle HTTP Client.
protected Client,GuzzleHttp $client
Résultat GuzzleHttp\Client