The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catmandu::Importer::Twitter - Package that imports Twitter feeds

SYNOPSIS

    use Catmandu::Importer::Twitter;

    my $importer = Catmandu::Importer::Twitter->new(
                        consumer_key => '<your key>' ,
                        consumer_secret => '<your secret>' ,
                        access_token => '<your token>' ,
                        access_token_secret => '<your token secret>' ,    
                        query => '#elag2013' 
                    );

    my $n = $importer->each(sub {
        my $hashref = $_[0];
        # ...
    });

METHODS

new(query => '...')

Create a new Twitter importer using a query as input.

count

each(&callback)

...

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited. The Catmandu::Importer::Twitter methods are not idempotent: Twitter feeds can only be read once.

SEE ALSO

Catmandu::Iterable