WordPress-Post
view release on metacpan or search on metacpan
Possible keys are:
title - string
description - body of your post, string
mt_excerpt - string
mt_text_more - boolean?
mt_allow_comments - boolean?
mt_allow_pings - boolean?
mt_tb_ping_urls - boolean?
dateCreated - cant figure out the right string
categories - array ref
Example use:
$o->post({
title => 'This is what happened',
description => 'Morning is when I wake up.',
categories => ['life','sleep'],
});
Returns post id. This is useful if you want to know how to reach it via
the web right away. For example if your address for the wordpress blog
is http://super.net/wp, then a post returning id '3' would be reached
via http://super.net/wp/?p=3
post_file()
Argument is abs path to file you want to post. Returns url via which the
file can be reached.
This is useful in building more complex posts, with attachments, etc.
BUGS
This module is in infancy. It works for me, and well.
I need to figure out how to determine the date, dateCreated strings such
as 2006-12-31 fail, I also tried '2006-12-31 12:00:00', still fails.
Please contact the AUTHOR for any issues.
AUTHOR
Leo Charre leocharre at cpan dot org
SEE ALSO
WordPress::CLI - replacement
INSTALLING AND TESTING
To test I suggest you download the package and test it out by hand.
For testing you will need to have a word press blog set up. You must
also know the proxy address, a username and password.
--------------------------------------------------------------------------------
REQUIRES
Date::Simple: 0
File::Type: 0
Image::Magick: 0
LEOCHARRE::CLI: 0
MIME::Base64: 0
Smart::Comments: 0
XMLRPC::Lite: 0
YAML: 0
INSTALL
perl Makefile.PL
make install
LICENSE
This package is free software; you can redistribute it and/or modify it
under the same terms as Perl itself, i.e., under the terms of the
"Artistic License" or the "GNU General Public License".
DISCLAIMER
This package is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the "GNU General Public License" for more details.
( run in 0.882 second using v1.01-cache-2.11-cpan-f56aa216473 )