PHP 클래스 SimpleSoftwareIO\SMS\Drivers\TwilioSMS

상속: extends AbstractSMS, implements SimpleSoftwareIO\SMS\Drivers\DriverInterface
파일 보기 프로젝트 열기: simplesoftwareio/simple-sms

보호된 프로퍼티들

프로퍼티 타입 설명
$authToken string Holds the Twilio auth token.
$twilio Services_Twilio The Twilio SDK.
$url string Holds the request URL to verify a Twilio push.
$verify boolean Determines if requests should be checked to be authentic.

공개 메소드들

메소드 설명
__construct ( Services_Twilio $twilio, $authToken, $url, boolean $verify = false ) Constructs the TwilioSMS object.
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 ( $raw ) Processing the raw information from a request and inputs it into the IncomingMessage object.
validateRequest ( ) Checks if a message is authentic from Twilio.

메소드 상세

__construct() 공개 메소드

Constructs the TwilioSMS object.
public __construct ( Services_Twilio $twilio, $authToken, $url, boolean $verify = false )
$twilio Services_Twilio
$authToken
$url
$verify boolean

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() 보호된 메소드

Processing the raw information from a request and inputs it into the IncomingMessage object.
protected processReceive ( $raw )
$raw

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

validateRequest() 보호된 메소드

Checks if a message is authentic from Twilio.
protected validateRequest ( )

프로퍼티 상세

$authToken 보호되어 있는 프로퍼티

Holds the Twilio auth token.
protected string $authToken
리턴 string

$twilio 보호되어 있는 프로퍼티

The Twilio SDK.
protected Services_Twilio $twilio
리턴 Services_Twilio

$url 보호되어 있는 프로퍼티

Holds the request URL to verify a Twilio push.
protected string $url
리턴 string

$verify 보호되어 있는 프로퍼티

Determines if requests should be checked to be authentic.
protected bool $verify
리턴 boolean