PHP 클래스 SimpleSoftwareIO\SMS\Drivers\EZTextingSMS

상속: extends AbstractSMS, implements SimpleSoftwareIO\SMS\Drivers\DriverInterface, use trait SimpleSoftwareIO\SMS\MakesRequests
파일 보기 프로젝트 열기: simplesoftwareio/simple-sms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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