Net::Blogger::Engine::Userland::metaWeblog - UserLand metaWeblog API engine
my $radio = Blogger->new(engine=>"radio"); $radio->Proxy(PROXY); $radio->Username(USERNAME); $radio->Password(PASSWORD); $radio->metaWeblog()->newPost( title=>"hello", description=>"world", publish=>1, );
Implements the UserLand metaWeblog API functionality.
This package is meant to be subclassed. It should not be used on it's own.
Valid arguments are :
title
String.
link
description
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.
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.
Returns a hash reference, or undef.
postid
Int. required
Returns true or false.
Returns a hash reference or undef.
Returns an array reference or undef.
0.5
$Date: 2003/05/21 16:20:02 $
Aaron Straup Cope
http://www.xmlrpc.com/metaWeblogApi
http://groups.yahoo.com/group/weblog-devel/message/200
http://www.xmlrpc.com/discuss/msgReader$2393
Copyright (c) 2002-2003 Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.
To install Net::Blogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Blogger
CPAN shell
perl -MCPAN -e shell install Net::Blogger
For more information on module installation, please visit the detailed CPAN module installation guide.