프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$apiBase | string | The API's URL. | |
$callbackOption | string | The callbackOption to receive message delivery notifications. | |
$client | The Guzzle HTTP Client. |
메소드 | 설명 | |
---|---|---|
__construct ( |
ZenviaSMS constructor. | |
checkMessages ( array $options = [] ) : array | Checks the server for messages and returns their results. | |
getMessage ( integer | string $messageId ) : |
Gets a single message by it's ID. | |
receive ( mixed $raw ) : |
Receives an incoming message via REST call. | |
send ( |
Sends a SMS message. |
메소드 | 설명 | |
---|---|---|
getRequest ( ) : mixed | Creates and sends a GET request to the requested URL. | |
postRequest ( ) : mixed | Creates and sends a POST request to the requested URL. | |
processReceive ( $rawMessage ) : |
Parse a response from messageId check and returns a Message. |
메소드 | 설명 | |
---|---|---|
generateMessageBody ( $from, $number, $composeMessage ) : array | Message body generator based on the attributes. |
public __construct ( |
||
$client | ||
$accountKey | ||
$passCode | ||
$callbackOption | string |
public checkMessages ( array $options = [] ) : array | ||
$options | array | |
리턴 | array |
public getMessage ( integer | string $messageId ) : |
||
$messageId | integer | string | |
리턴 |
protected getRequest ( ) : mixed | ||
리턴 | mixed |
protected postRequest ( ) : mixed | ||
리턴 | mixed |
protected processReceive ( $rawMessage ) : |
||
$rawMessage | ||
리턴 |
public send ( |
||
$message |
protected string $callbackOption | ||
리턴 | string |