Constants

DEVICE_ALL

DEVICE_ALL = 0

DEVICE_BROWSER

DEVICE_BROWSER = 1

DEVICE_PC

DEVICE_PC = 2

DEVICE_ANDROID

DEVICE_ANDROID = 3

DEVICE_IOS

DEVICE_IOS = 4

DEVICE_WINPHONE

DEVICE_WINPHONE = 5

IOSENV_PROD

IOSENV_PROD = 1

IOSENV_DEV

IOSENV_DEV = 2

IOS_MIN_ID

IOS_MIN_ID = 2200000000

RESTAPI_PUSHSINGLEDEVICE

RESTAPI_PUSHSINGLEDEVICE = 'http://openapi.xg.qq.com/v2/push/single_device'

RESTAPI_PUSHSINGLEACCOUNT

RESTAPI_PUSHSINGLEACCOUNT = 'http://openapi.xg.qq.com/v2/push/single_account'

RESTAPI_PUSHACCOUNTLIST

RESTAPI_PUSHACCOUNTLIST = 'http://openapi.xg.qq.com/v2/push/account_list'

RESTAPI_PUSHALLDEVICE

RESTAPI_PUSHALLDEVICE = 'http://openapi.xg.qq.com/v2/push/all_device'

RESTAPI_PUSHTAGS

RESTAPI_PUSHTAGS = 'http://openapi.xg.qq.com/v2/push/tags_device'

RESTAPI_QUERYPUSHSTATUS

RESTAPI_QUERYPUSHSTATUS = 'http://openapi.xg.qq.com/v2/push/get_msg_status'

RESTAPI_QUERYDEVICECOUNT

RESTAPI_QUERYDEVICECOUNT = 'http://openapi.xg.qq.com/v2/application/get_app_device_num'

RESTAPI_QUERYTAGS

RESTAPI_QUERYTAGS = 'http://openapi.xg.qq.com/v2/tags/query_app_tags'

RESTAPI_CANCELTIMINGPUSH

RESTAPI_CANCELTIMINGPUSH = 'http://openapi.xg.qq.com/v2/push/cancel_timing_task'

RESTAPI_BATCHSETTAG

RESTAPI_BATCHSETTAG = 'http://openapi.xg.qq.com/v2/tags/batch_set'

RESTAPI_BATCHDELTAG

RESTAPI_BATCHDELTAG = 'http://openapi.xg.qq.com/v2/tags/batch_del'

RESTAPI_QUERYTOKENTAGS

RESTAPI_QUERYTOKENTAGS = 'http://openapi.xg.qq.com/v2/tags/query_token_tags'

RESTAPI_QUERYTAGTOKENNUM

RESTAPI_QUERYTAGTOKENNUM = 'http://openapi.xg.qq.com/v2/tags/query_tag_token_num'

RESTAPI_CREATEMULTIPUSH

RESTAPI_CREATEMULTIPUSH = 'http://openapi.xg.qq.com/v2/push/create_multipush'

RESTAPI_PUSHACCOUNTLISTMULTIPLE

RESTAPI_PUSHACCOUNTLISTMULTIPLE = 'http://openapi.xg.qq.com/v2/push/account_list_multiple'

RESTAPI_PUSHDEVICELISTMULTIPLE

RESTAPI_PUSHDEVICELISTMULTIPLE = 'http://openapi.xg.qq.com/v2/push/device_list_multiple'

RESTAPI_QUERYINFOOFTOKEN

RESTAPI_QUERYINFOOFTOKEN = 'http://openapi.xg.qq.com/v2/application/get_app_token_info'

RESTAPI_QUERYTOKENSOFACCOUNT

RESTAPI_QUERYTOKENSOFACCOUNT = 'http://openapi.xg.qq.com/v2/application/get_app_account_tokens'

RESTAPI_DELETETOKENOFACCOUNT

RESTAPI_DELETETOKENOFACCOUNT = 'http://openapi.xg.qq.com/v2/application/del_app_account_tokens'

RESTAPI_DELETEALLTOKENSOFACCOUNT

RESTAPI_DELETEALLTOKENSOFACCOUNT = 'http://openapi.xg.qq.com/v2/application/del_app_account_all_tokens'

Properties

$accessId

$accessId : 

Type

$secretKey

$secretKey : 

Type

Methods

__construct()

__construct(  $accessId,   $secretKey) 

Parameters

$accessId
$secretKey

PushTokenAndroid()

PushTokenAndroid(  $accessId,   $secretKey,   $title,   $content,   $token) 

使用默认设置推送消息给单个android设备.

Parameters

$accessId
$secretKey
$title
$content
$token

PushSingleDevice()

PushSingleDevice(  $deviceToken,   $message,   $environment) 

推送消息给单个设备.

Parameters

$deviceToken
$message
$environment

PushTokenIos()

PushTokenIos(  $accessId,   $secretKey,   $content,   $token,   $environment) 

使用默认设置推送消息给单个ios设备.

Parameters

$accessId
$secretKey
$content
$token
$environment

PushAccountAndroid()

PushAccountAndroid(  $accessId,   $secretKey,   $title,   $content,   $account) 

使用默认设置推送消息给单个android版账户.

Parameters

$accessId
$secretKey
$title
$content
$account

PushSingleAccount()

PushSingleAccount(  $deviceType,   $account,   $message,   $environment) 

推送消息给单个账户.

Parameters

$deviceType
$account
$message
$environment

PushAccountIos()

PushAccountIos(  $accessId,   $secretKey,   $content,   $account,   $environment) 

使用默认设置推送消息给单个ios版账户.

Parameters

$accessId
$secretKey
$content
$account
$environment

PushAllAndroid()

PushAllAndroid(  $accessId,   $secretKey,   $title,   $content) 

使用默认设置推送消息给所有设备android版.

Parameters

$accessId
$secretKey
$title
$content

PushAllDevices()

PushAllDevices(  $deviceType,   $message,   $environment) 

推送消息给APP所有设备.

Parameters

$deviceType
$message
$environment

PushAllIos()

PushAllIos(  $accessId,   $secretKey,   $content,   $environment) 

使用默认设置推送消息给所有设备ios版.

Parameters

$accessId
$secretKey
$content
$environment

PushTagAndroid()

PushTagAndroid(  $accessId,   $secretKey,   $title,   $content,   $tag) 

使用默认设置推送消息给标签选中设备android版.

Parameters

$accessId
$secretKey
$title
$content
$tag

PushTags()

PushTags(  $deviceType,   $tagList,   $tagsOp,   $message,   $environment) 

推送消息给指定tags的设备 若要推送的tagList只有一项,则tagsOp应为OR.

Parameters

$deviceType
$tagList
$tagsOp
$message
$environment

PushTagIos()

PushTagIos(  $accessId,   $secretKey,   $content,   $tag,   $environment) 

使用默认设置推送消息给标签选中设备ios版.

Parameters

$accessId
$secretKey
$content
$tag
$environment

__destruct()

__destruct() 

PushAccountList()

PushAccountList(  $deviceType,   $accountList,   $message,   $environment) 

推送消息给多个账户.

Parameters

$deviceType
$accountList
$message
$environment

CreateMultipush()

CreateMultipush(  $message,   $environment) 

创建批量推送任务

Parameters

$message
$environment

PushAccountListMultiple()

PushAccountListMultiple(  $pushId,   $accountList) 

按帐号大批量推送

Parameters

$pushId
$accountList

PushDeviceListMultiple()

PushDeviceListMultiple(  $pushId,   $deviceList) 

按Token大批量推送

Parameters

$pushId
$deviceList

QueryPushStatus()

QueryPushStatus(array  $pushIdList) 

查询消息推送状态

Parameters

array $pushIdList

pushId(string)数组

QueryDeviceCount()

QueryDeviceCount() 

查询应用覆盖的设备数.

QueryTags()

QueryTags(  $start,   $limit = 100) 

查询应用标签.

Parameters

$start
$limit

QueryTagTokenNum()

QueryTagTokenNum(  $tag) 

查询标签下token数量.

Parameters

$tag

QueryTokenTags()

QueryTokenTags(  $deviceToken) 

查询token的标签.

Parameters

$deviceToken

CancelTimingPush()

CancelTimingPush(  $pushId) 

取消定时发送

Parameters

$pushId

BatchSetTag()

BatchSetTag(  $tagTokenPairs) 

Parameters

$tagTokenPairs

InitParams()

InitParams() 

BatchDelTag()

BatchDelTag(  $tagTokenPairs) 

Parameters

$tagTokenPairs

QueryInfoOfToken()

QueryInfoOfToken(  $deviceToken) 

Parameters

$deviceToken

QueryTokensOfAccount()

QueryTokensOfAccount(  $account) 

Parameters

$account

DeleteTokenOfAccount()

DeleteTokenOfAccount(  $account,   $deviceToken) 

Parameters

$account
$deviceToken

DeleteAllTokensOfAccount()

DeleteAllTokensOfAccount(  $account) 

Parameters

$account

callRestful()

callRestful(  $url,   $params) 

Parameters

$url
$params

json2Array()

json2Array(  $json) 

Parameters

$json

ValidateMessageType()

ValidateMessageType(  $message) 

Parameters

$message

ValidateToken()

ValidateToken(  $token) 

Parameters

$token