test from Command line
Code source:
#!/usr/bin/perl use strict; use warnings; use WordPress::XMLRPC; my $o = WordPress::XMLRPC->new({ username => 'thot', password => 'xxxxxxx', proxy => 'http://distran.org/xmlrpc.php', }); my $article; $article->{title} = "Test de Post depuis un script Perl"; $article->{categories} = ['Vrac']; $article->{description} = "test from Command line"; $o->newPost($article,1);
Ne pas oublier d’installer le port p5-WordPress-XMLRPC
# portinstall p5-WordPress-XMLRPC