PHP code example of 19js / push-api

1. Go to this page and download the library: Download 19js/push-api 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/ */

    

19js / push-api example snippets


    $site="要推送的站点";
    $token="百度站长工具里面的token";
    $urls=[];//要推送的网址数组
    $res=\Tom\PushApi\PushApi::handler($site,$token,$urls);
    var_dump($res);