I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-09-12 04:32:02.623321-07 by pocs
I don't seems to be able to create Entry
Dear all, I am new to XML::Atom and I have been trying to createEntry with the function called. But My script end up showing 415 unsupported media type. Below is the code i write with example given from the site :
#!/usr/bin/perl use XML::Atom::Client; use XML::Atom::Entry; my $BLOG_ID = 'xxxxxxxxxxx'; my $USERNAME = 'xxxxxxxxx'; my $PASSWORD = 'xxxxxxxxx'; my $api = XML::Atom::Client->new; $api->username($USERNAME); $api->password($PASSWORD); #my $PostURI = "http://myblog.blogspot.com"; #my $PostURI = "http://www.blogger.com/post-create.g?blogID=xxxxxxxxxxxxxx"; my $PostURI = 'http://www.blogger.com/feeds/xxxxxxxxxxxxx/posts/default'; my $entry = XML::Atom::Entry->new; $entry->title('New Post'); $entry->content('Content of my post.'); my $EditURI = $api->createEntry($PostURI, $entry) or +warn $api->errstr;; #my $entry = $api->getEntry($EditURI); use Data::Dumper; print Dumper($entry)
when i run this script i got 415 unsupported media type. I got my postURI from the blogger documentation.
Direct Responses: Write a response