PHP Класс SimpleSoftwareIO\SMS\Drivers\EZTextingSMS

Наследование: extends AbstractSMS, implements SimpleSoftwareIO\SMS\Drivers\DriverInterface, use trait SimpleSoftwareIO\SMS\MakesRequests
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$apiBase string The API's URL.
$apiEnding array The ending of the URL that all requests must have.
$client GuzzleHttp\Client The Guzzle HTTP Client.

Открытые методы

Метод Описание
__construct ( Client $client ) Constructs a new 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 ) Sends a SMS message.

Защищенные методы

Метод Описание
processReceive ( $rawMessage ) : mixed | IncomingMessage Returns an IncomingMessage object with it's properties filled out.

Описание методов

__construct() публичный Метод

Constructs a new instance.
public __construct ( Client $client )
$client GuzzleHttp\Client

checkMessages() публичный Метод

Checks the server for messages and returns their results.
public checkMessages ( array $options = [] ) : array
$options array
Результат array

getMessage() публичный Метод

Gets a single message by it's ID.
public getMessage ( string | integer $messageId ) : IncomingMessage
$messageId string | integer
Результат SimpleSoftwareIO\SMS\IncomingMessage

processReceive() защищенный Метод

Returns an IncomingMessage object with it's properties filled out.
protected processReceive ( $rawMessage ) : mixed | IncomingMessage
$rawMessage
Результат mixed | SimpleSoftwareIO\SMS\IncomingMessage

receive() публичный Метод

Receives an incoming message via REST call.
public receive ( mixed $raw ) : IncomingMessage
$raw mixed
Результат SimpleSoftwareIO\SMS\IncomingMessage

send() публичный Метод

Sends a SMS message.
public send ( OutgoingMessage $message )
$message SimpleSoftwareIO\SMS\OutgoingMessage

Описание свойств

$apiBase защищенное свойство

The API's URL.
protected string $apiBase
Результат string

$apiEnding защищенное свойство

The ending of the URL that all requests must have.
protected array $apiEnding
Результат array

$client защищенное свойство

The Guzzle HTTP Client.
protected Client,GuzzleHttp $client
Результат GuzzleHttp\Client