PHP code example of 39ff / ultimatetwitter

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

    

39ff / ultimatetwitter example snippets


use koulab\UltimateTwitter\Client;
$to = new Client();
$response = $to->get('https://api.twitter.com/1.1/users/show.json?screen_name=twitter');
print_r($response);


use koulab\UltimateTwitter\Proxy;
use koulab\UltimateTwitter\Client;
$proxy = new Proxy();
$proxy->addAddress('socks5://127.0.0.1:9150');
$proxy->addAddress('http://lum-customer-.....-zone-static-ip-..:[email protected]:22225');
$proxy->addAddress('http://lum-customer-.....-zone-static-ip-..:[email protected]:22225');

$to = new Client($proxy);
$response = $to->get('https://api.twitter.com/1.1/users/show.json?screen_name=twitter');
print_r($response);