<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">use WWW::twitter;
use Data::Dumper;

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

my $twitter = WWW::twitter-&gt;new( username =&gt; 'Dia_Minarik_86',
					password =&gt; 'EzmgRdaT');
					
$stats = $twitter-&gt;stats;	

$following = $stats-&gt;{following};
$followers = $stats-&gt;{followers};	
$total_status = $stats-&gt;{total_status};
$total_media = $stats-&gt;{total_media};
$favorites = $stats-&gt;{favorites};

print "following $following followers $followers  total_status $total_status  total_media $total_media  favorites $favorites  \n";	

$twitter-&gt;login; 

sleep 5;
$mystatus_id = $twitter-&gt;tweet('my first status');
print "mystatus_id $mystatus_id \n";

$status_id = xxxxxxxxx;

sleep 5;
$status = $twitter-&gt;favorite($status_id);
print "favorite status $status \n"; # 1 = OK ; 0 = Something wrong

sleep 5;
$status = $twitter-&gt;retweet($status_id);
print "retweet status $status \n"; # 1 = OK ; 0 = Something wrong
</pre></body></html>