WordPress::Base - DEPRECATED basic connection to wordpress via xmlrpc


WordPress-Post documentation  | view source Contained in the WordPress-Post distribution.

Index


NAME

Top

WordPress::Base - DEPRECATED basic connection to wordpress via xmlrpc

DESCRIPTION

Top

This module is for use for other modules like WordPress::Post

SYNOPSIS

Top

   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

new()

Top

Argument is hash ref. Keys are 'proxy', 'username', and 'password'.

   my $o= new WordPress::Base ({ 
      proxy => 'http://this/xmlrpc.php', 
      username => 'lou', 
      password => '2342ss' 
   });

METHODS

Top

head2 server()

returns XMLRPC::Lite object proxy must be set

username()

Perl set/get method. Argument is string. If you pass 'username' to constructor, it is prepopulated.

   my $username = $o->username;
   $o->username('bill');

password()

Perl set/get method. Argument is string. If you pass 'password' to constructor, it is prepopulated.

   my $pw = $o->password;
   $o->password('jim');

proxy()

Perl set/get method. Argument is string. If you pass 'poxy' to constructor, it is prepopulated.

SEE ALSO

Top

XMLRPC::Lite SOAP::Lite WordPress::Post

WordPress::CLI - replacement

AUTHOR

Top

leocharre leocharre at gmail dot com

COPYRIGHT

Top

LICENSE

Top

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".

DISCLAIMER

Top

This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the "GNU General Public License" for more details.


WordPress-Post documentation  | view source Contained in the WordPress-Post distribution.