AbleCloud PHP SDK
1.8.x
PHP SDK of AbleCloud API
|
Public 成员函数 | |
__construct ($name, $version, $context) | |
notifyDeviceUsers ($deviceId, $notification, $toUsers) | |
notifyUsers ($notification, $toUsers) | |
![]() | |
__construct ($name, $version, $context) | |
getName () | |
getVersion () | |
getContext () | |
getLastError () | |
额外继承的成员函数 | |
![]() | |
resetLastError ($errCode=0, $errMessage='') | |
AbleCloud消息推送服务。 消息推送服务仅适用于推送给APP用户。
ACNotificationMgr::__construct | ( | $name, | |
$version, | |||
$context | |||
) |
构造函数。
$name | string 消息推送服务的名字。 |
$version | int 消息推送服务的版本。 |
$context | ACContext ACContext对象,表示访问该远程服务所依赖的环境信息。 |
ACNotificationMgr::notifyDeviceUsers | ( | $deviceId, | |
$notification, | |||
$toUsers | |||
) |
向设备的用户推送消息。
$deviceId | 目标设备的逻辑ID。 |
$notification | ACNotification对象,表示要被推送的消息。 |
$toUsers | 整数。0表示向设备的所有用户推送该消息;1表示向设备的管理员推送该消息。 |
ACNotificationMgr::notifyUsers | ( | $notification, | |
$toUsers | |||
) |
向用户推送消息。
$notification | 要推送的消息。 |
$toUsers | 整数的数组,是消息推送的目标用户ID的集合。 |