PHP code example of dotzecker / tuiter
1. Go to this page and download the library: Download dotzecker/tuiter 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/ */
dotzecker / tuiter example snippets
use Tuiter\Tuiter;
// Let's load our archive
$tweets = Tuiter::fromArchive(__DIR__ . '/your/awesome/path/to/tweets.csv');
$unwantedTweets = $tweets->retweets()->before('2014-05-20')->get();
use Tuiter\TweetDestroyer;
$destroyer = TweetDestroyer::withParams(
'Consumer Key', 'Consumer Secret', 'Access Token', 'Access Token Secret'
);
foreach ($unwantedTweets as $tweet) {
$destroyer->destroy($tweet);
}