WWW::Blogger::XML::API |
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()
$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 );
$result = WWW::Blogger::XML::API::ua_request( $request );
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 );
$result = WWW::Blogger::XML::API::ua_request( $request );
2. Retrieving posts using query parameters
$request = WWW::Blogger::XML::API::browse_by_blogid( $blogid, '/Comedy/-dark' );
-OR-
$request = WWW::Blogger::XML::API::search_by_blogid( $blogid, 'start-index' => 1, 'max-results' => 10 );
$result = WWW::Blogger::XML::API::ua_request( $request );
See: http://code.google.com/apis/blogger/developers_guide_protocol.html#RetrievingWithQuery
$request = WWW::Blogger::XML::API::get_post_by_blogid_postid( $blogid, $postid );
$result = WWW::Blogger::XML::API::ua_request( $request );
## Edit the Entry, then put the update
$request = WWW::Blogger::XML::API::put_post_by_blogid_postid( $blogid, $postid, $entry );
$result = WWW::Blogger::XML::API::ua_request( $request );
$request = WWW::Blogger::XML::API::remove_post_by_blogid_postid( $blogid, $postid );
$result = WWW::Blogger::XML::API::ua_request( $request );
1. Creating comments
$request = WWW::Blogger::XML::test_comment_by_blogid_postid( $blogid, $postid );
-OR-
$request = WWW::Blogger::XML::API::comment_entry_by_blogid_postid( $blogid, $postid, $entry );
$result = WWW::Blogger::XML::API::ua_request( $request );
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 );
-OR-
$request = WWW::Blogger::XML::API::list_of_comments_by_blogid_postid( $blogid, $postid );
$result = WWW::Blogger::XML::API::ua_request( $request );
3. Deleting comments
$request = WWW::Blogger::XML::API::remove_comment_by_blogid_postid_commentid( $blogid, $postid, $commentid );
$result = WWW::Blogger::XML::API::ua_request( $request );
the WWW::Blogger manpage the WWW::Blogger::ML::API manpage the WWW::Blogger::XML manpage
Copyright (C) 2008 Eric R. Meyers E<lt>Eric.R.Meyers@gmail.comE<gt>
WWW::Blogger::XML::API |