Christopher H. Laco

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.

PACKAGE METHODS

__PACKAGE->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.

Releases prior to Net::Blogger 0.85 accepted a list of arguments rather than a reference. Version 0.85+ are backwards compatible.

Returns an object. Woot!

__PACKAGE__->init

Initializes the option values

OBJECT 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.

$pkg->Transport

Just returns XMLRPC by default

VERSION

1.0

DATE

$Date: 2005/03/26 19:29:08 $

AUTHOR

Aaron Straup Cope

SEE ALSO

Net::Blogger::API::Core

Net::Blogger::API::Extended

SOAP::Lite

LICENSE

Copyright (c) 2001-2005 Aaron Straup Cope.

This is free software, you may use it and distribute it under the same terms as Perl itself.