PHP code example of papajo / xingeunify

1. Go to this page and download the library: Download papajo/xingeunify 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/ */

    

papajo / xingeunify example snippets


$push = new \XingeUnify\XingeUnify('access_key', 'secret_key', 'ios');
$ret1 = $push->PushSingleDevice('device_token', 'title', 'content');
//or continue switch app config and push
$ret2 = $push->setAccess('access_key2', 'secret_key2')->setXingeAppObj('android')->setXingeMessObj()->PushSingleDevice('device_token', 'title', 'content');