MojoX::Twitter - Simple Twitter Client
use MojoX::Twitter;
my $twitter = MojoX::Twitter->new(
consumer_key => 'x',
consumer_secret => 'z',
access_token => '1-z',
access_token_secret => 'x',
);
my $users = $twitter->request('GET', 'users/show', { screen_name => 'support' });
## streaming
$twitter->streaming('https://userstream.twitter.com/1.1/user.json', { with => 'followings' }, sub {
my ($tweet) = @_;
say Dumper(\$tweet);
});
MojoX::Twitter is a simple Twitter client:
- without OAuth authentication
- auto sleep when X-Rate-Limit-Remaining is 0
Fayland Lam [email protected]
Copyright 2016- Fayland Lam
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.