SPUG: accessing to blogger api

Medrano-Zaldivar, L E LMedrano-Zaldivar at ciber.com
Tue May 17 10:54:41 PDT 2005


I'm trying to access to the blogger api with this script but for some reasons I can not make connection with the blogger api. Can any body tell me what can I be doing wrong?.


use strict;
use warnings;
use Data::Dumper;
use XMLRPC::Lite;
my $username = "myblog";
my $password = "mypassword";
my $blogid   = "1";
my $proxyurl = 'http://plant.blogger.com/api/RPC2';
my $appkey   = "anything";
my $title='some title here';
my $description='some text in here';

my $res = XMLRPC::Lite
   -> proxy($proxyurl)
         -> call('metaWeblog.newPost', $blogid, $username, $password,
               'title'             => $title,
               'description'       => $description,
               'mt_allow_comments' => 1,  # must be int, not string
            1 # 1 = publish
         -> result;

if (defined ($res)){
   print "--success--\n";
   print Dumper ($res);
   print "failed: $!";


More information about the spug-list mailing list