class SmsApi

Properties

$apiSendUrl
$apiVariableUrl
$apiBalanceQueryUrl
$apiSendCtyUrl
$apiAccount
$apiPassword

Methods

__construct(string $api_account = '', string $api_password = '')

ChuanglanSmsApi constructor.

sendSMS(string $mobile, string $msg, string $needstatus = 'true')

发送短信

sendVariableSMS(string $msg, string $params)

发送变量短信

mixed|string
sendCtySMS(string $mobile, string $msg)

发送国际短信

queryBalance()

查询额度

Details

at line 41
__construct(string $api_account = '', string $api_password = '')

ChuanglanSmsApi constructor.

Parameters

string $api_account
string $api_password

at line 60
sendSMS(string $mobile, string $msg, string $needstatus = 'true')

发送短信

Parameters

string $mobile 手机号码
string $msg 短信内容
string $needstatus 是否需要状态报告

at line 79
sendVariableSMS(string $msg, string $params)

发送变量短信

Parameters

string $msg 短信内容
string $params 最多不能超过1000个参数组

at line 100
mixed|string sendCtySMS(string $mobile, string $msg)

发送国际短信

Parameters

string $mobile 手机号码
string $msg 短信内容

Return Value

mixed|string

at line 118
queryBalance()

查询额度

查询地址