Properties

$app

$app : \think\App

应用实例

Type

\think\App

$accessKey

$accessKey : 

Type

$secretKey

$secretKey : 

Type

$url

$url : 

Type

$method

$method : 

Type

$param

$param : 

需要发送的的参数

Type

$output

$output : 

响应内容

Type

$contentType

$contentType : string

Type

string

Methods

__construct()

__construct(\think\App  $app) 

Service constructor.

Parameters

\think\App $app

instance()

instance(array  $args) : static

静态实例对象

Parameters

array $args

Returns

static

accessKey()

accessKey(string  $accessKey) : $this

Parameters

string $accessKey

Returns

$this

secretKey()

secretKey(string  $secretKey) : $this

Parameters

string $secretKey

Returns

$this

param()

param(array  $param) : $this

请求参数

Parameters

array $param

Returns

$this

message()

message() : $this

发送短信 https://developer.qiniu.com/sms/api/5897/sms-api-send-message#1

Returns

$this

messageSingle()

messageSingle() : $this

发送单条短信 https://developer.qiniu.com/sms/api/5897/sms-api-send-message#2

Returns

$this

messageOversea()

messageOversea() : $this

发送国际/港澳台短信 https://developer.qiniu.com/sms/api/5897/sms-api-send-message#3

Returns

$this

messageFulltext()

messageFulltext() : $this

发送全文本短信(不需要传模版 ID) https://developer.qiniu.com/sms/api/5897/sms-api-send-message#3

Returns

$this

messages()

messages() : $this

查询短信发送记录 https://developer.qiniu.com/sms/api/5852/query-send-sms

Returns

$this

signature()

signature() : $this

创建签名 https://developer.qiniu.com/sms/api/5844/sms-api-create-signature

Returns

$this

signatureQuery()

signatureQuery() : $this

查询签名 https://developer.qiniu.com/sms/api/5844/sms-api-create-signature

Returns

$this

signatureQueryId()

signatureQueryId(  $id) : $this

查询单个签名信息 https://developer.qiniu.com/sms/api/5970/query-a-single-signature

Parameters

$id

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

$this

signatureEditId()

signatureEditId(  $id) : $this

编辑签名 https://developer.qiniu.com/sms/api/5890/sms-api-edit-signature

Parameters

$id

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

$this

signatureDelId()

signatureDelId(  $id) : $this

删除签名 https://developer.qiniu.com/sms/api/5891/sms-api-delete-signature

Parameters

$id

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

$this

template()

template() : $this

创建模板 https://developer.qiniu.com/sms/api/5893/sms-api-create-template

Returns

$this

templateQuery()

templateQuery() : $this

查询模板 https://developer.qiniu.com/sms/api/5894/sms-api-query-template

Returns

$this

templateQueryId()

templateQueryId(  $id) : $this

查询单个模版信息 https://developer.qiniu.com/sms/api/5969/query-a-single-template

Parameters

$id

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

$this

templateEditId()

templateEditId(  $id) : $this

编辑签名 https://developer.qiniu.com/sms/api/5895/sms-api-edit-template

Parameters

$id

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

$this

templateDelId()

templateDelId(  $id) : $this

删除签名 https://developer.qiniu.com/sms/api/5896/sms-api-delete-template

Parameters

$id

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

$this

toArray()

toArray() : array|mixed

返回数组数据

Throws

\DtApp\ThinkLibrary\exception\DtaException
\GuzzleHttp\Exception\GuzzleException

Returns

array|mixed

initialize()

initialize() : $this

初始化服务

Returns

$this

object2array()

object2array(  $object) : array

Parameters

$object

Returns

array

http()

http() : $this

网络请求

Throws

\DtApp\ThinkLibrary\exception\DtaException
\GuzzleHttp\Exception\GuzzleException

Returns

$this

authentication()

authentication() : string

服务鉴权 https://developer.qiniu.com/sms/api/5842/sms-api-authentication

Returns

string

sign()

sign(  $data) : string

Parameters

$data

Returns

string

encode()

encode(  $string) : string|array<mixed,string>

Parameters

$string

Returns

string|array<mixed,string>