WordPress::Base - basic connection to wordpress via xmlrpc
This module is for use for other modules like WordPress::Post
package Wordpress::Something; use base 'WordPress:Base'; my $o= WordPress::Base->new ({ proxy => 'http://this/xmlrpc.php', username => 'lou', password => '2342ss' }); $o->server; $o->_categories; # re-query $o->categories; # query once
Argument is hash ref. Keys are 'proxy', 'username', and 'password'.
my $o= new WordPress::Base ({ proxy => 'http://this/xmlrpc.php', username => 'lou', password => '2342ss' });
head2 server()
returns XMLRPC::Lite object proxy must be set
Perl set/get method. Argument is string. If you pass 'username' to constructor, it is prepopulated.
my $username = $o->username; $o->username('bill');
Perl set/get method. Argument is string. If you pass 'password' to constructor, it is prepopulated.
my $pw = $o->password; $o->password('jim');
Perl set/get method. Argument is string. If you pass 'poxy' to constructor, it is prepopulated.
Leo Charre leocharre at cpan dot org
XMLRPC::Lite SOAP::Lite WordPress::Post
WordPress
To install WordPress::Post, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WordPress::Post
CPAN shell
perl -MCPAN -e shell install WordPress::Post
For more information on module installation, please visit the detailed CPAN module installation guide.