xmlrpc – What did I do wrong?
-
I try get categories(I have blog on wordpress.com) my perl script:
#!/usr/bin/perl
use strict;
use warnings;use Carp;
use XMLRPC::Lite;my $self = {
server => XMLRPC::Lite->proxy( “http://kun4.wordpress.com/xmlrpc.php” ),
blog_ID => ‘543282’,
username => ‘kun4’,
password => ‘######’
};
my $call = $self->{ server }->call(
‘metaWeblog.getCategories’,
$self->{ blog_ID } ,
$self->{ username },
$self->{ password }
);#print $call->result;
$call->fault and croak ‘get_categories: ‘, $call->faultstring;
my @categories;
push @categories, $_->{ categoryName } for @{ $call->result };
print map { “$_n” } @categories;
##############but everytime i get error:
Bad login/pass combination.
WHy ?My script works good on standard wordpress installation(only one wp blog, non MU)
Why ?
Please help me!!
-
OOPS! You seem to be in the wrong place. WordPress.com is a MU (multi-user) blogging platform. We run on a different code base than the version you can download from http://wordpress.org and you will get different answers to your questions here. The forum for self hosted and web hosted wordpress blogs is located over here http://wordpress.org/support You may want to take a few moments and read this description about the different versions of WordPress software posted in a pink “read me first” sticky at the head of this forum. Happy blogging! :)
-
-
-
-
What is the URL for the blog where you are trying to use the perl script?
If it’s on wp.com it will never work. We aren’t able to modify the install.
If it’s on your own hosting then you really do need to be over at .org – unfortunately I think there’s some confusion as you mentioned wordpress.com in the first line and then mention “(only one wp blog, non MU)
“I think you need to clarify exactly what it is you’re trying to do (and where you’re trying to do it) before anyone can help.
Collin
- The topic ‘xmlrpc – What did I do wrong?’ is closed to new replies.