Author image Víctor A. Rodríguez
and 1 contributors

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 :

  • TWuser : twitter username

  • twitter : Net::Twitter created object

  • blog : blog publishing object based on Twitter::Daily::Blog::Base (e.g Blosxom::Publish)

  • verbose : more activity related messages than usual :-D

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)