newPost(\%args)
newMediaObject(\%args)
editPost(\%args)
getPost(\%args)
getCategories()
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.
newPost(\%args)
Valid arguments are :
String.
link descriptionString.
categoriesArray reference.
publishBoolean.
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.
newMediaObject(\%args)
Valid argument are :
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.
nameString. ``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.
typeString. ``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.
bitsBase64-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.
editPost(\%args)
Int. required
titleString.
link descriptionString.
categoriesArray reference.
publishBoolean.
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.
getPost(\%args)
Valid arguments are :
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.
getCategories()
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
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.