PHP code example of unniks / twitter-powertracker

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

    

unniks / twitter-powertracker example snippets

sh
public static function getPowerTrack($data)
{
    //do some stuff with incoming $data
}
sh
//return "exit" in the function "app/TwitterPowerTrackerStream.php"

public static function getPowerTrack($data)
{
    //some code
    if(//some condition)
    {
      return "exit";
    }
}
sh
$results = TwitterPowertracker::thirtyDaysGet($rule);
sh
$results = TwitterPowertracker::thirtyDaysGet($rule,$maxResults);
sh
$results = TwitterPowertracker::thirtyDaysGet($rule,$maxResults,$startDate,$endDate);