class BindTag extends BaseClient

Traits

AppTrait

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait
protected string $iosAppKey from  BaseClient
protected string $androidChannel from  BaseClient
protected string $androidAppKey from  BaseClient
protected string $accessKey

Aliyun Access Key

from  BaseClient
protected string $accessSecret

Aliyun Access Secret

from  BaseClient
protected string $androidActivity from  BaseClient
protected string $clientName from  BaseClient
protected mixed $result 执行结果 from  BaseClient

Methods

getError()

获取错误

from  AppTrait
bool
setError(string|MessageBag $error)

设置错误

from  AppTrait
getSuccess()

Get success messages;

from  AppTrait
bool
setSuccess(Resp|string $success)

No description

from  AppTrait
__construct(Config $config)

SendBase constructor.

setAppConfig($ak, $sk, $android_app_id, $android_channel = '', $ios_key = '')

No description

getResult()

No description

Push
initClient()

初始化

bool
bindDevice(string $device_type, string $tag, string|array $client_key)

No description

Details

in AppTrait at line 32
Resp getError()

获取错误

Return Value

Resp

in AppTrait at line 45
bool setError(string|MessageBag $error)

设置错误

Parameters

string|MessageBag $error error

Return Value

bool

in AppTrait at line 82
Resp getSuccess()

Get success messages;

Return Value

Resp

in AppTrait at line 100
bool setSuccess(Resp|string $success)

No description

Parameters

Resp|string $success 设置的成功信息

Return Value

bool

in BaseClient at line 69
__construct(Config $config)

SendBase constructor.

Parameters

Config $config

in BaseClient at line 81
BaseClient setAppConfig($ak, $sk, $android_app_id, $android_channel = '', $ios_key = '')

No description

Parameters

$ak
$sk
$android_app_id
$android_channel
$ios_key

Return Value

BaseClient

in BaseClient at line 91
getResult()

No description

in BaseClient at line 99
protected Push initClient()

初始化

Return Value

Push

at line 21
bool bindDevice(string $device_type, string $tag, string|array $client_key)

No description

Parameters

string $device_type

设备类型 [ANDROID|IOS]

string $tag 标签
string|array $client_key 客户端代码

Return Value

bool