The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Blogger::Engine::Userland::metaWeblog - UserLand metaWeblog API engine

SYNOPSIS

 my $radio = Blogger->new(engine=>"radio");
 $radio->Proxy(PROXY);
 $radio->Username(USERNAME);
 $radio->Password(PASSWORD);

 $radio->metaWeblog()->newPost(
                               title=>"hello",
                               description=>"world",
                               publish=>1,
                              );

DESCRIPTION

Implements the UserLand metaWeblog API functionality.

This package is meant to be subclassed. It should not be used on it's own.

OBJECTS METHODS

$pkg->newPost(\%args)

Valid arguments are :

  • title

    String.

  • link

  • description

    String.

  • categories

    Array reference.

  • publish

    Boolean.

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

Returns an int, or false.

$pkg->getRecentPosts(\%args)

Returns the most recent posts

Valid arguments are:

numberOfPosts

The maximum number of posts to return

$pkg->newMediaObject(\%args)

Valid argument are :

  • file

    String. Path to the file you're trying to upload.

    If this argument is present the package will try to load MIME::Base64 for automagic encoding.

  • name

    String. "It may be used to determine the name of the file that stores the object, or to display it in a list of objects. It determines how the weblog refers to the object. If the name is the same as an existing object stored in the weblog, it replaces the existing object." [1]

    If a file argument is present and no name argument is defined, this property will be defined using the File::Basename::basename function.

  • type

    String. "It indicates the type of the object, it's a standard MIME type, like audio/mpeg or image/jpeg or video/quicktime." [1]

    If a file argument is present and no type argument is defined, the package will try setting this property using the File::MMagic package.

  • bits

    Base64-encoded binary value. The content of the object.

    If a file argument is present, the package will try setting this property using the MIME::Base64 package.

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

Returns a hash reference, or undef.

$pkg->editPost(\%args)

  • postid

    Int. required

  • title

    String.

  • link

  • description

    String.

  • categories

    Array reference.

  • publish

    Boolean.

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

Returns true or false.

$pkg->getPost(\%args)

Valid arguments are :

  • postid

    Int. required

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

Returns a hash reference or undef.

$pkg->getCategories()

Returns an array reference or undef.

VERSION

1.0

DATE

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

AUTHOR

Aaron Straup Cope

SEE ALSO

http://www.xmlrpc.com/metaWeblogApi

http://groups.yahoo.com/group/weblog-devel/message/200

FOOTNOTES

[1]

http://www.xmlrpc.com/discuss/msgReader$2393

LICENSE

Copyright (c) 2002-2005 Aaron Straup Cope. All Rights Reserved.

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