프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$apiBase | string | The API's URL. | |
$apiEnding | array | The ending of the URL that all requests must have. | |
$apiKey | string | The API key. | |
$apiSecret | string | The API secret key. | |
$client | The Guzzle HTTP Client. |
메소드 | 설명 | |
---|---|---|
__construct ( |
Create the CallFire instance. | |
checkMessages ( array $options = [] ) : array | Checks the server for messages and returns their results. | |
getMessage ( string | integer $messageId ) : |
Gets a single message by it's ID. | |
receive ( mixed $raw ) : |
Receives an incoming message via REST call. | |
send ( |
Sends a SMS message. |
메소드 | 설명 | |
---|---|---|
getFirstMessage ( $body ) | Get the first message in the response from Nexmo | |
handleError ( $body ) | Log the error message which ocurred | |
hasAResponseMessage ( $body ) | Check for a message in the response from Nexmo | |
hasError ( $body ) : boolean | Checks if the transaction has an error | |
hasProperty ( $message, $property ) : boolean | Check if the message from Nexmo has a given property | |
processReceive ( $rawMessage ) : mixed | Creates many IncomingMessage objects and sets all of the properties. |
public __construct ( |
||
$client | The Guzzle Client |
public checkMessages ( array $options = [] ) : array | ||
$options | array | |
리턴 | array |
protected getFirstMessage ( $body ) | ||
$body |
public getMessage ( string | integer $messageId ) : |
||
$messageId | string | integer | |
리턴 |
protected hasAResponseMessage ( $body ) | ||
$body |
protected hasProperty ( $message, $property ) : boolean | ||
$message | ||
$property | ||
리턴 | boolean |
protected processReceive ( $rawMessage ) : mixed | ||
$rawMessage | ||
리턴 | mixed |
public send ( |
||
$message |
protected array $apiEnding | ||
리턴 | array |