Twitter::Daily - Publishes a blog entry using the given day Twitter tweets
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();
This package contains the very Twitter::Daily core and coordinates Twitter timeline retrieval and blog publishing
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
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
Ends relationship woth Twitter and Blog
Returns the last error message in English language. Will return an empty string if the last operation ended successfuly
Returns the last error number. Will return zero if the last operation ended successfuly
Victor A. Rodriguez (Bit-Man)
To install Twitter::Daily, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Twitter::Daily
CPAN shell
perl -MCPAN -e shell install Twitter::Daily
For more information on module installation, please visit the detailed CPAN module installation guide.