PHP code example of code-lives / app-push-tpns

1. Go to this page and download the library: Download code-lives/app-push-tpns 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/ */

    

code-lives / app-push-tpns example snippets


    $app_push->send_tag($content, $tag,$message_type);
 

   //1-8
   $operator_type = 1;
   $array = ['token_list' => []];
   $tag_array = ['tag_list' => []];
   $app_push->set_tag($operator_type, $array = [], $tag_array = []);

   //9-10
   $operator_type = 9;
   $array = ['tag_token_list' => []];
   $app_push->set_tag($operator_type, $array = []);
 

    $app_push->delete_tag(['tag_list'=>[]]);
 

   $operator_type = 1;
   $array = ['account_list' => []];
   $array = ['token_list' => []];
   $array = ['token_accounts' => []];
   $app_push->account_save($operator_type, $array);
 

   $operator_type = 1;
   $array = ['account_list' => []];
   $array = ['token_list' => []];
   $app_push->account_query($operator_type, $array);