Víctor A. Rodríguez > Twitter-Daily > Twitter::Daily

Download:
Twitter-Daily-0.1.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.1.3   Source  

NAME ^

Twitter::Daily - Publishes a blog entry using the given day Twitter tweets

SYNOPSIS ^

        my $twDaily = Twitter::Daily->new( 'TWuser' => $twUser,
                                                                           'twitter' => $twitter,
                                                                           'blog' => $blog,
                                                                           'entry' => $entry,
                                                                           'verbose' => $verbose
                                                                           ) || die("Not all options were passed");
                                                                
        $twDaily->postNews($date,$title) || do {
                my $error =  $twDaily->errMsg();
                $twDaily->close(); 
                die( $error ); 
        };
        
        $twDaily->close();

DESCRIPTION ^

This package contains the very Twitter::Daily core and coordinates Twitter timeline retrieval and blog publishing

new

Constructor. Accepts the next parameters :

postNews

Obtains Twitter entries for the day and creates a new entry in the blog. Returns 1 on success and 0 on fail. The error can be retrieved using errMsg and errNumber

close

Ends relationship woth Twitter and Blog

errMsg

Returns the last error message in English language. Will return an empty string if the last operation ended successfuly

errNumber

Returns the last error number. Will return zero if the last operation ended successfuly

AUTHOR ^

Victor A. Rodriguez (Bit-Man)

syntax highlighting: