WWW::Blogger::XML::API - How to Interface with Blogger using HTTP Protocol and GData XML Atom API.
http://code.google.com/apis/blogger/developers_guide_protocol.html
use WWW::Blogger; my $request = WWW::Blogger::XML::API::list_of_blogs_by_userid( $userid ); my $result = WWW::Blogger::XML::API::ua_request( $request );
user agent transaction dump
transaction request dump
transaction result dump
XML::API stands for XML Application Programming Interface
See: http://code.blogger.com http://code.google.com/apis/blogger http://code.google.com/apis/blogger/developers_guide_protocol.html
WWW::Blogger::XML::demo()
WWW::Blogger::XML::API::set_account( $username, $password );
$request = WWW::Blogger::XML::API::list_of_blogs_by_userid( $userid );
$result = WWW::Blogger::XML::API::ua_request( $request );
See Example: WWW::Blogger::XML::parse_list_of_blogs( $result )
1. Publishing a blog post
$request = WWW::Blogger::XML::test_post_by_blogid( $blogid ) ## a Test Post
-OR-
$request = WWW::Blogger::XML::API::post_entry_by_blogid( $blogid, $entry );
Follow the "Test Post" example to create your XML::Atom::Syndication::Entry.
See Example: WWW::Blogger::XML::parse_test_post_entry( $result );
2. Creating a draft blog post
TBD
1. Retrieving all blog posts
$request = WWW::Blogger::XML::API::list_of_posts_by_blogid( $blogid );
2. Retrieving posts using query parameters
$request = WWW::Blogger::XML::API::browse_by_blogid( $blogid, '/Comedy/-dark' );
$request = WWW::Blogger::XML::API::search_by_blogid( $blogid, 'start-index' => 1, 'max-results' => 10 );
See: http://code.google.com/apis/blogger/developers_guide_protocol.html#RetrievingWithQuery
$request = WWW::Blogger::XML::API::get_post_by_blogid_postid( $blogid, $postid );
## Edit the Entry, then put the update
$request = WWW::Blogger::XML::API::put_post_by_blogid_postid( $blogid, $postid, $entry );
$request = WWW::Blogger::XML::API::remove_post_by_blogid_postid( $blogid, $postid );
1. Creating comments
$request = WWW::Blogger::XML::test_comment_by_blogid_postid( $blogid, $postid );
$request = WWW::Blogger::XML::API::comment_entry_by_blogid_postid( $blogid, $postid, $entry );
Follow the "Test Comment" example to create your XML::Atom::Syndication::Entry.
2. Retrieving comments
$request = WWW::Blogger::XML::API::list_of_comments_by_blogid( $blogid );
$request = WWW::Blogger::XML::API::list_of_comments_by_blogid_postid( $blogid, $postid );
3. Deleting comments
$request = WWW::Blogger::XML::API::remove_comment_by_blogid_postid_commentid( $blogid, $postid, $commentid );
WWW::Blogger WWW::Blogger::ML::API WWW::Blogger::XML
Copyright (C) 2008 Eric R. Meyers E<lt>Eric.R.Meyers@gmail.comE<gt>
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install WWW::Blogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Blogger
CPAN shell
perl -MCPAN -e shell install WWW::Blogger
For more information on module installation, please visit the detailed CPAN module installation guide.