NAME
App::wp::xmlrpc - A thin CLI for accessing WordPress XML-RPC API
VERSION
This document describes version 0.001 of App::wp::xmlrpc (from Perl distribution App-wp-xmlrpc), released on 2016-11-14.
SYNOPSIS
See wp-xmlrpc.
FUNCTIONS
wp_deleteComment(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
comment_id* => posint
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_deletePost(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
post_id* => posint
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_deleteTerm(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
proxy* => str
term_id* => posint
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_editComment(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
comment* => str
comment_id* => posint
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_editPost(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
content* => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_editProfile(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
content* => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_editTerm(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
content* => str
password* => str
proxy* => str
term_id* => posint
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getAuthors(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getComment(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
comment_id* => posint
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getCommentCount(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
post_id* => posint
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getCommentStatusList(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getComments(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
filter => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getMediaItem(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
attachment_id* => posint
blog_id => posint (default: 1)
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getMediaLibrary(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
filter => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getOptions(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
options => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getPost(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
fields => str
password* => str
post_id* => posint
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getPostFormats(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
filter => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getPostStatusList(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getPostType(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
fields => str
password* => str
post_type_name* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getPostTypes(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
fields => str
filter => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getPosts(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
filter => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getProfile(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
fields => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getTaxonomies(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getTaxonomy(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
proxy* => str
taxonomy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getTerm(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
proxy* => str
taxonomy* => str
term_id* => posint
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getTerms(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
password* => str
proxy* => str
taxonomy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getUser(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
fields => str
password* => str
proxy* => str
user_id* => posint
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getUsers(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
fields => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_getUsersBlogs(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
isAdmin* => bool
password* => str
proxy* => str
username* => str
xmlrpc* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_newComment(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
comment* => str
password* => str
post_id* => posint
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_newPost(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
content* => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_newTerm(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
content* => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
wp_setOptions(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
blog_id => posint (default: 1)
options* => str
password* => str
proxy* => str
username* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/App-wp-xmlrpc.
SOURCE
Source repository is at https://github.com/perlancar/perl-App-wp-xmlrpc.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-wp-xmlrpc
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
SEE ALSO
API reference: https://codex.wordpress.org/XML-RPC_WordPress_API
Other WordPress API modules on CPAN: WordPress::XMLRPC by Leo Charre (a thin wrapper over XMLRPC::Lite), WordPress::API by Leo Charre (an OO wrapper over WordPress::XMLRPC, but at time of this writing the module has not been updated since 2008/WordPress 2.7 era), WP::API by Dave Rolsky (OO interface, incomplete).
Other WordPress API CLI on CPAN: wordpress-info, wordpress-upload-media, wordpress-upload-post (from WordPress::CLI distribution, also by Leo Charre).
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.