Patrick Hochstenbach > Catmandu-Twitter > Catmandu::Importer::Twitter

Download:
Catmandu-Twitter-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

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

syntax highlighting: