App-wp-xmlrpc
view release on metacpan or search on metacpan
lib/App/wp/xmlrpc.pm view on Meta::CPAN
},
'wp.getPostFormats' => {
args => [
['filter', {schema=>'str*'}],
],
},
'wp.getPostStatusList' => {
args => [
],
},
# Taxonomies
'wp.getTaxonomy' => {
args => [
['taxonomy*', {schema=>'str*'}],
],
},
'wp.getTaxonomies' => {
args => [
],
},
'wp.getTerm' => {
args => [
['taxonomy*', {schema=>'str*'}],
['term_id*', {schema=>'posint*'}],
],
},
'wp.getTerms' => {
args => [
['taxonomy*', {schema=>'str*'}],
],
},
'wp.newTerm' => {
args => [
['content*', {schema=>'str*'}],
],
},
'wp.editTerm' => {
args => [
['term_id*', {schema=>'posint*'}],
['content*', {schema=>'str*'}],
],
},
'wp.deleteTerm' => {
args => [
['term_id*', {schema=>'posint*'}],
],
},
# Media
'wp.getMediaItem' => {
args => [
['attachment_id*', {schema=>'posint*'}],
],
},
'wp.getMediaLibrary' => {
args => [
['filter', {schema=>'str*'}],
],
},
# TODO: wp.uploadFile
# Comments
'wp.getCommentCount' => {
args => [
['post_id*', {schema=>'posint*'}],
],
},
'wp.getComment' => {
args => [
['comment_id*', {schema=>'posint*'}],
],
},
'wp.getComments' => {
args => [
['filter', {schema=>'str*'}],
],
},
'wp.newComment' => {
args => [
['post_id*', {schema=>'posint*'}],
['comment*', {schema=>'str*'}],
],
},
'wp.editComment' => {
args => [
['comment_id*', {schema=>'posint*'}],
['comment*', {schema=>'str*'}],
],
},
'wp.deleteComment' => {
args => [
['comment_id*', {schema=>'posint*'}],
],
},
'wp.getCommentStatusList' => {
args => [
],
},
# Options
'wp.getOptions' => {
args => [
['options', {schema=>'str*'}],
],
},
'wp.setOptions' => {
args => [
['options*', {schema=>'str*'}],
],
},
# Users
'wp.getUsersBlogs' => {
args => [
['xmlrpc*', {schema=>'str*'}],
['isAdmin*', {schema=>'bool*'}],
],
},
'wp.getUser' => {
args => [
lib/App/wp/xmlrpc.pm view on Meta::CPAN
Usage:
wp_setOptions(%args) -> [status, msg, result, meta]
This function is not exported.
Arguments ('*' denotes required arguments):
=over 4
=item * B<blog_id> => I<posint> (default: 1)
=item * B<options>* => I<str>
=item * B<password>* => I<str>
=item * B<proxy>* => I<str>
=item * B<username>* => I<str>
=back
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)
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/App-wp-xmlrpc>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-App-wp-xmlrpc>.
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website L<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.
=head1 SEE ALSO
API reference: L<https://codex.wordpress.org/XML-RPC_WordPress_API>
Other WordPress API modules on CPAN: L<WordPress::XMLRPC> by Leo Charre (a thin
wrapper over L<XMLRPC::Lite>), L<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), L<WP::API> by Dave Rolsky (OO interface,
incomplete).
Other WordPress API CLI on CPAN: L<wordpress-info>, L<wordpress-upload-media>,
L<wordpress-upload-post> (from L<WordPress::CLI> distribution, also by Leo
Charre).
L<XMLRPC::Lite>
=head1 AUTHOR
perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2017, 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.
=cut
( run in 1.654 second using v1.01-cache-2.11-cpan-b16cb0d3907 )