Author image Egor Shipovalov
and 1 contributors


WebService::Blogger - Interface to Google's Blogger service


Version 0.14


This module provides interface to the Blogger service now run by Google. It's built in object-oriented fashion with Moose, which makes it easy to use and extend. It also utilizes newer style GData API for better compatibility. You can retrieve list of blogs for an account, add, update or delete entries.

 use WebService::Blogger;

 my $blogger = WebService::Blogger->new(
     login_id   => '',
     password   => 'mypassword',

 my @blogs = $blogger->blogs;
 foreach my $blog (@blogs) {
     print join ', ', $blog->id, $blog->title, $blog->public_url, "\n";

 my $blog = $blogs[1];
 my @entries = $blog->entries;

 my ($entry) = @entries;
 print $entry->title, "\n", $entry->content;

 $entry->title('Updated Title');
 $entry->content('Updated content');
 $entry->categories([ qw/category1 category2/ ]);

 my $new_entry = WebService::Blogger::Blog->add_entry(
     title   => 'New entry',
     content => 'New content',
     blog    => $blog,



 my $blogger = WebService::Blogger->new(
     login_id   => '',
     password   => 'mypassword',

Connects to Blogger, authenticates and returns object representing Blogger account. The credentials can be given in named parameters or read from ~/.www_blogger_rc , which has contents like this:

 username =
 password = somepassword

The file must not be accessible by anyone but the owner. Module will die with an error if it is. Authentication token received will be stored privately and used in all subsequent requests.


Returns list of blogs for the account, as either array or array reference, depending on the context. Items are instances of WebService::Blogger::Blog.


Egor Shipovalov, <kogdaugodno at>


Comments are currently not supported.

Please report any bugs or feature requests to bug-webservice-blogger at, or through the web interface at I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


You can find documentation for this module with the perldoc command.

    perldoc WebService::Blogger

You can also look for information at:


Copyright 2010 Egor Shipovalov.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See for more information.