Catalyst::Model::NetBlogger - Catalyst Model to post and retrieve blog entries using Net::Blogger
# Model __PACKAGE__->config( engine => 'movabletype', blogid => 1, username => 'login', password => 'apipassword', proxy => 'http://example.com/mt/mt-xmlrpc.cgi' ); # Controller sub default : Private { my ($self, $c) = @_; { local $^W = 0; my ($return, @entries) = $c->model('Blog')->metaWeblog->getRecentPosts({numberOfPosts => 5}); if ($return) { $c->stash->{'entries'} = \@entries; }; }; $c->stash->{'template'} = 'blog.tt'; };
This model class uses Net::Blogger to post and retrieve blog entries to various web log engines XMLRPC API.
The following configuration options are available. They are taken directly from Net::Blogger:
The name of the blog engine to use. This defaults to 'blogger',
The url of the remote XMLRPC listener to connect to.
The id of the blog to post or retrieve entries to.
The username used to log into the specified blog.
The password used to log into the specified blog.
The magic appkey used when connecting to Blogger blogs.
The URI to post to at the proxy specified above.
See Net::Blogger for the available methods.
Catalyst::Manual, Catalyst::Helper, Net::Blogger
Christopher H. Laco CPAN ID: CLACO claco@chrislaco.com http://today.icantfocus.com/blog/
To install Catalyst::Model::NetBlogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::NetBlogger
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::NetBlogger
For more information on module installation, please visit the detailed CPAN module installation guide.