NAME
Net::Blogger::Engine::Base - base class for Blogger API engines
SYNOPSIS
package Net::Blogger::Engine::SuperFly;
use vars qw ( @ISA );
@ISA = qw ( Net::Blogger::Engine::Base );
use Net::Blogger::Engine::Base;
sub new {
my $pkg = shift;
my $self = {};
bless $self,$pkg;
$self->SUPER::init(@_);
return $self;
}
DESCRIPTION
Base.pm is used a base class by implementation specific modules for the Blogger API.
If an implementation follows the Blogger API to the letter then, conceivably, all it's package would need to define is a constructor and Proxy method to define the URI of it's XML-RPC server.
Base.pm inherits the functionality of Net::Blogger::Base::API and Net::Blogger::Base::Ext and defines private methods used by each.
CONSTRUCTOR METHODS
Blogger->new(%args)
Instantiate a new Blogger object.
Valid arguments are :
appkey
String. The magic appkey for connecting to the Blogger XMLRPC server.
blogid
String. The unique ID that Blogger uses for your weblog
username
String. A valid username for blogid
password
String. A valid password for the username/blogid pair.
PUBLIC METHODS
There are no public methods. See Net::Blogger::Base::API and Net::Blogger::Base::Ext.
PRIVATE METHODS
$pkg->Proxy()
Get/set the URI of the Blogger API server.
$pkg->AppKey($key)
Get/set the magic appkey
$pkg->BlogId($id)
Get/set the blogid
$pkg->Username($username)
Get/set the username
$pkg->Password($password)
Get/set the password
$pkg->MaxPostLength()
Return the maximum number of characters a single post may contain.
$pkg->LastError($e)
Fetch the last recorded error message.
Returns a string.
PRIVATE METHODS
$pkg->_Client()
Return an XML-RPC or SOAP client object.
$pkg->_Type(%args)
VERSION
0.3
DATE
May 16, 2002
AUTHOR
Aaron Straup Cope
SEE ALSO
CHANGES
0.3
Switched to SOAP::Lite rather than XMLRPC::Lite
Added Transport and Uri
0.2
Added hooks to set child API (metaWeblog,mt) login data when parent object changes.
Modified _Type to handle hash references.
Added quotes to $VERSION
0.1.3
Updated POD
0.1.2
Updated POD
0.1.1
The XML-RPC client is instantiated and set using a discreet object (rather than via a hash key for the Bloggger.pm object) because the XMLRPC::Lite::proxy method and the Net::Blogger::Engine::Base::Proxy method (which is AUTOLOAD-ed) are getting confused. (WTF?)
No need to pass $self to &_ClientFault.
0.1
Initial revision.
LICENSE
Copyright (c) 2001-2002 Aaron Straup Cope.
This is free software, you may use it and distribute it under the same terms as Perl itself.