PHP code example of lokielse / tencent-xg-push

1. Go to this page and download the library: Download lokielse/tencent-xg-push library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lokielse / tencent-xg-push example snippets


$client = new XGPush(<your_access_id>, <your_secret_key>);

$client->createMultiplePush(...)
$client->pushAllAndroid(...)
$client->queryTokenTags(...)
$client->pushAccountAndroid(...)
$client->pushAllDevices(...)
$client->batchDeleteTag(...)
$client->pushAllIOS(...)
$client->pushTagsIOS(...)
$client->pushAccountMass(...)
$client->batchSetTag(...)
$client->pushTagsAndroid(...)
$client->cancelTimingPush(...)
$client->queryTagTokenCount(...)
$client->queryDeviceCount(...)
$client->queryTokensOfAccount(...)
$client->queryInfoOfToken(...)
$client->pushTokenIOS(...)
$client->pushSingleAccount(...)
$client->pushDeviceMass(...)
$client->pushTags(...)
$client->queryTags(...)
$client->pushAccounts(...)
$client->pushAccountIOS(...)
$client->queryPushStatus(...)