Property | Type | Description | |
---|---|---|---|
$config | array | The configuration information of agent. | |
$result | array | The result data. |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) | Constructor. | |
__get ( $name ) : mixed | Overload object properties. | |
__isset ( $name ) : boolean | When using isset() or empty() on inaccessible object properties, the __isset() overloading method will be called. | |
config ( mixed $key = null, mixed $value = null, boolean $override = false ) : mixed | Get or set the configuration information of agent. | |
curl ( string $url, array $params = [], integer | boolean $isPost = false ) : array | cURl | |
result ( $name = null, $value = null ) : mixed | Set/get result data. | |
sendContentSms ( $to, $content ) | Content SMS send process. | |
sendSms ( $to, $content, $tempId, array $tempData ) | SMS send process. | |
sendTemplateSms ( $to, $tempId, array $tempData ) | Template SMS send process. | |
sockPost ( $url, array $query, $port = 80 ) : mixed | Http post request. | |
voiceVerify ( $to, $code, $tempId, array $tempData ) | Voice verify send process. |
abstract public sendContentSms ( $to, $content ) | ||
$to | ||
$content |
abstract public sendTemplateSms ( $to, $tempId, array $tempData ) | ||
$to | ||
$tempId | ||
$tempData | array |
abstract public voiceVerify ( $to, $code, $tempId, array $tempData ) | ||
$to | ||
$code | ||
$tempId | ||
$tempData | array |
protected array $config | ||
return | array |