├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── apigen.conf
├── composer.json
├── phpunit.xml
├── src
├── Exception
│ ├── NetworkException.php
│ └── XmlrpcException.php
└── WordpressClient.php
└── tests
├── .gitkeep
├── WordpressClientTest.php
├── bootstrap.php
├── fixtures
├── comments
│ ├── test-delete-comment-no-privilege-vcr.yml
│ ├── test-delete-comment-not-exist-vcr.yml
│ ├── test-delete-comment-vcr.yml
│ ├── test-edit-comment-no-privilege-vcr.yml
│ ├── test-edit-comment-not-exist-vcr.yml
│ ├── test-edit-comment-vcr.yml
│ ├── test-get-comment-count-no-privilege-vcr.yml
│ ├── test-get-comment-count-vcr.yml
│ ├── test-get-comment-no-filter-vcr.yml
│ ├── test-get-comment-no-privilege-vcr.yml
│ ├── test-get-comment-not-exist-vcr.yml
│ ├── test-get-comment-status-list-vcr.yml
│ ├── test-get-comment-vcr.yml
│ ├── test-get-commnents-no-privilege-vcr.yml
│ ├── test-new-comment-vcr.yml
│ └── test-new-conmment-no-post-exist-vcr.yml
├── media
│ ├── test-get-media-item-no-exist-vcr.yml
│ ├── test-get-media-item-no-privilege-vcr.yml
│ ├── test-get-media-item-vcr.yml
│ ├── test-get-media-library-no-privilege-vcr.yml
│ ├── test-get-media-library-vcr.yml
│ ├── test-get-media-library-with-filter-vcr.yml
│ ├── test-upload-file-error-vcr.yml
│ ├── test-upload-file-no-privilege-vcr.yml
│ ├── test-upload-file-vcr.yml
│ └── test-upload-file-with-attachment-vcr.yml
├── options
│ ├── test-get-options-vcr.yml
│ ├── test-get-options-with-filters-vcr.yml
│ ├── test-set-options-no-privilege-vcr.yml
│ └── test-set-options-vcr.yml
├── posts
│ ├── test-delete-post-no-privilege-vcr.yml
│ ├── test-delete-post-vcr.yml
│ ├── test-delete-post-with-invalid-id-vcr.yml
│ ├── test-edit-post-no-privilege-vcr.yml
│ ├── test-edit-post-title-and-content-vcr.yml
│ ├── test-edit-post-with-invalid-id-vcr.yml
│ ├── test-edit-post-with-other-info-change-vcr.yml
│ ├── test-get-post-error-invalid-post-id-vcr.yml
│ ├── test-get-post-error-not-have-permission-vcr.yml
│ ├── test-get-post-formats-no-privilege-vcr.yml
│ ├── test-get-post-formats-vcr.yml
│ ├── test-get-post-return-ok-vcr.yml
│ ├── test-get-post-status-list-no-privilege-vcr.yml
│ ├── test-get-post-status-list-vcr.yml
│ ├── test-get-post-type-invalid-name-vcr.yml
│ ├── test-get-post-type-no-privilege-vcr.yml
│ ├── test-get-post-type-vcr.yml
│ ├── test-get-post-types-no-privilege-vcr.yml
│ ├── test-get-post-types-vcr.yml
│ ├── test-get-post-with-fields-return-ok-vcr.yml
│ ├── test-get-posts-return-empty-vcr.yml
│ ├── test-get-posts-with-default-config-vcr.yml
│ ├── test-get-posts-with-fields-vcr.yml
│ ├── test-get-posts-with-filters-vcr.yml
│ ├── test-new-post-invalid-term-vcr.yml
│ ├── test-new-post-invalid-thumbnail-vcr.yml
│ ├── test-new-post-minimal-info-vcr.yml
│ ├── test-new-post-no-privilege-vcr.yml
│ ├── test-new-post-with-advanced-fields-vcr.yml
│ └── test-new-post-with-utf8-content-vcr.yml
├── taxonomies
│ ├── test-delete-term-invalid-taxonomy-name-vcr.yml
│ ├── test-delete-term-no-privilege-vcr.yml
│ ├── test-delete-term-not-exist-vcr.yml
│ ├── test-delete-term-vcr.yml
│ ├── test-edit-term-empty-name-vcr.yml
│ ├── test-edit-term-invalid-parent-vcr.yml
│ ├── test-edit-term-invalid-taxonomy-name-vcr.yml
│ ├── test-edit-term-no-privilege-vcr.yml
│ ├── test-edit-term-not-exist-vcr.yml
│ ├── test-edit-term-vcr.yml
│ ├── test-get-taxonomies-no-privilege-vcr.yml
│ ├── test-get-taxonomies-vcr.yml
│ ├── test-get-taxonomy-invalid-name-vcr.yml
│ ├── test-get-taxonomy-no-privilege-vcr.yml
│ ├── test-get-taxonomy-vcr.yml
│ ├── test-get-term-invalid-taxonomy-name-vcr.yml
│ ├── test-get-term-invalid-term-id-vcr.yml
│ ├── test-get-term-no-privilege-vcr.yml
│ ├── test-get-term-vcr.yml
│ ├── test-get-terms-invalid-taxonomy-name-vcr.yml
│ ├── test-get-terms-no-privilege-vcr.yml
│ ├── test-get-terms-vcr.yml
│ ├── test-new-term-empty-name-vcr.yml
│ ├── test-new-term-invalid-parent-vcr.yml
│ ├── test-new-term-invalid-taxonomy-name-vcr.yml
│ ├── test-new-term-no-hierachical-vcr.yml
│ ├── test-new-term-no-privilege-vcr.yml
│ ├── test-new-term-vcr.yml
│ └── test-new-term-with-more-info-vcr.yml
├── test-login-failed-vcr.yml
├── test-on-sending-callbacks-vcr.yml
└── users
│ ├── test-edit-profile-vcr.yml
│ ├── test-get-profile-vcr.yml
│ ├── test-get-user-no-privilege-vcr.yml
│ ├── test-get-user-not-exist-vcr.yml
│ ├── test-get-user-vcr.yml
│ ├── test-get-users-blogs-vcr.yml
│ ├── test-get-users-invalid-role-vcr.yml
│ ├── test-get-users-no-privilege-vcr.yml
│ └── test-get-users-vcr.yml
├── image.jpg
└── xmlrpc.yml
/.gitignore:
--------------------------------------------------------------------------------
1 | /.idea
2 | /vendor
3 | composer.phar
4 | composer.lock
5 | .DS_Store
6 | /nbproject/private/
7 | nbproject/
8 | docs/
9 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 |
3 | php:
4 | - '5.3'
5 | - '5.4'
6 | - '5.5'
7 | - '5.6'
8 | - '7.0'
9 | - hhvm
10 |
11 | before_script:
12 | - composer self-update
13 | - composer install --prefer-source --no-interaction --dev
14 |
15 | script:
16 | - vendor/bin/phpunit --coverage-clover build/logs/clover.xml
17 |
18 | after_script:
19 | - vendor/bin/test-reporter
20 |
21 | matrix:
22 | allow_failures:
23 | - php: hhvm
24 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Hieu Le Trung
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/apigen.conf:
--------------------------------------------------------------------------------
1 | source: "./src"
2 | destination: "./docs"
3 | title: "Wordpress XML-RPC PHP Client"
4 | baseUrl: "http://letrunghieu.github.io/wordpress-xmlrpc-client/api"
5 | googleAnalytics: "UA-49054610-2"
6 | templateTheme: "bootstrap"
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "hieu-le/wordpress-xmlrpc-client",
3 | "description": "A PHP client for Wordpress websites that closely implement the XML-RPC WordPress API with full test suite built in",
4 | "keywords": ["wordpress", "xmlrpc", "client", "remote", "api"],
5 | "license": "MIT",
6 | "authors": [
7 | {
8 | "name": "Hieu Le",
9 | "email": "letrunghieu.cse09@gmail.com",
10 | "homepage": "http://www.hieule.info"
11 | }
12 | ],
13 | "require": {
14 | "php": ">=5.3.0",
15 | "ext-xmlrpc": "*"
16 | },
17 | "require-dev": {
18 | "phpunit/phpunit": "*",
19 | "symfony/yaml": "2.*",
20 | "php-vcr/php-vcr": "^1.0",
21 | "php-vcr/phpunit-testlistener-vcr": "*",
22 | "illuminate/support": "~4.0",
23 | "codeclimate/php-test-reporter": "dev-master"
24 | },
25 | "autoload": {
26 | "psr-4": {
27 | "HieuLe\\WordpressXmlrpcClient\\": "src/"
28 | }
29 | },
30 | "minimum-stability": "stable"
31 | }
32 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 | ./tests/
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | src/
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/Exception/NetworkException.php:
--------------------------------------------------------------------------------
1 | message} (Code: {$this->code})";
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Exception/XmlrpcException.php:
--------------------------------------------------------------------------------
1 | message} (Code: {$this->code})";
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tests/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/letrunghieu/wordpress-xmlrpc-client/4eced3821b41ba21ce314569b79d7302d65f4b16/tests/.gitkeep
--------------------------------------------------------------------------------
/tests/bootstrap.php:
--------------------------------------------------------------------------------
1 | enableLibraryHooks(array('stream_wrapper', 'curl'));
24 | }
25 | else
26 | {
27 | \VCR\VCR::configure()->enableLibraryHooks(array());
28 | }
29 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-delete-comment-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.deleteComment\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 1\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:34 GMT'
19 | Connection: close
20 | Content-Length: '425'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n You are not allowed to moderate or edit this comment.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-delete-comment-not-exist-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.deleteComment\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n -1\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:34 GMT'
19 | Connection: close
20 | Content-Length: '391'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid comment ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-edit-comment-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.editComment\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 1\n \n \n \n \n \n \n content\n \n I have editted this comment!\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:32 GMT'
19 | Connection: close
20 | Content-Length: '425'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n You are not allowed to moderate or edit this comment.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-edit-comment-not-exist-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.editComment\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n -1\n \n \n \n \n \n \n content\n \n I have editted this comment!\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:32 GMT'
19 | Connection: close
20 | Content-Length: '391'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid comment ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-get-comment-count-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPosts\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n number\n \n 1\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:26 GMT'
19 | Connection: close
20 | Content-Length: '3219'
21 | body: "\n\n \n \n \n \n \n post_id27\n post_titleAttachment post\n post_date20160202T09:21:19\n post_date_gmt20160202T09:21:19\n post_modified20160202T09:21:19\n post_modified_gmt20160202T09:21:19\n post_statuspublish\n post_typepost\n post_nameattachment-post\n post_author1\n post_password\n post_excerpt\n post_content\n post_parent0\n post_mime_type\n linkhttp://wp_domain/2016/02/02/attachment-post/\n guidhttp://wp_domain/?p=27\n menu_order0\n comment_statusopen\n ping_statusopen\n sticky0\n post_thumbnail\n\n post_formatstandard\n terms\n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count9\n filterraw\n\n\n custom_fields\n\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getCommentCount\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 1\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:26 GMT'
39 | Connection: close
40 | Content-Length: '423'
41 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n You are not allowed access to details of this post.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-get-comment-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getComment\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 1\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:28 GMT'
19 | Connection: close
20 | Content-Length: '425'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n You are not allowed to moderate or edit this comment.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-get-comment-not-exist-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getComment\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n -1\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:28 GMT'
19 | Connection: close
20 | Content-Length: '391'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid comment ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-get-comment-status-list-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getCommentStatusList\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:34 GMT'
19 | Connection: close
20 | Content-Length: '483'
21 | body: "\n\n \n \n \n \n holdUnapproved\n approveApproved\n spamSpam\n trashTrash\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-get-commnents-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getComments\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:29 GMT'
19 | Connection: close
20 | Content-Length: '395'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n Invalid comment status.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-new-comment-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPosts\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n number\n \n 1\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:23 GMT'
19 | Connection: close
20 | Content-Length: '3219'
21 | body: "\n\n \n \n \n \n \n post_id27\n post_titleAttachment post\n post_date20160202T09:21:19\n post_date_gmt20160202T09:21:19\n post_modified20160202T09:21:19\n post_modified_gmt20160202T09:21:19\n post_statuspublish\n post_typepost\n post_nameattachment-post\n post_author1\n post_password\n post_excerpt\n post_content\n post_parent0\n post_mime_type\n linkhttp://wp_domain/2016/02/02/attachment-post/\n guidhttp://wp_domain/?p=27\n menu_order0\n comment_statusopen\n ping_statusopen\n sticky0\n post_thumbnail\n\n post_formatstandard\n terms\n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count9\n filterraw\n\n\n custom_fields\n\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.newComment\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 27\n \n \n \n \n \n \n content\n \n Lorem ipsum 123\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:23 GMT'
39 | Connection: close
40 | Content-Length: '170'
41 | body: "\n\n \n \n \n 2\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/comments/test-new-conmment-no-post-exist-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newComment\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 1000\n \n \n \n \n \n \n content\n \n First comment\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:24 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid post ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/media/test-get-media-item-no-exist-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getMediaItem\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 999\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:16 GMT'
19 | Connection: close
20 | Content-Length: '394'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid attachment ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/media/test-get-media-item-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getMediaItem\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 229\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:16 GMT'
19 | Connection: close
20 | Content-Length: '415'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n You do not have permission to upload files.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/media/test-get-media-library-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getMediaLibrary\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:22 GMT'
19 | Connection: close
20 | Content-Length: '415'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You do not have permission to upload files.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/media/test-upload-file-error-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.uploadFile\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n Foo\n \n \n \n type\n \n bar\n \n \n \n bits\n \n \n\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:15 GMT'
19 | Connection: close
20 | Content-Length: '416'
21 | body: "\n\n \n \n \n \n faultCode\n 500\n \n \n faultString\n Could not write file Foo (Invalid file type)\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/media/test-upload-file-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.uploadFile\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n Foo\n \n \n \n type\n \n image/jpeg\n \n \n \n bits\n \n ZmlsZV9jb250ZW50\n\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:14 GMT'
19 | Connection: close
20 | Content-Length: '415'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You do not have permission to upload files.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/options/test-get-options-with-filters-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getOptions\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n thumbnail_size_w\n \n \n thumbnail_size_h\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:22 GMT'
19 | Connection: close
20 | Content-Length: '807'
21 | body: "\n\n \n \n \n \n thumbnail_size_w\n descThumbnail Width\n readonly0\n value150\n\n thumbnail_size_h\n descThumbnail Height\n readonly0\n value150\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/options/test-set-options-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.setOptions\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n thumbnail_size_w\n \n 1000\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:23 GMT'
19 | Connection: close
20 | Content-Length: '410'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n You are not allowed to update options.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/options/test-set-options-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.setOptions\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n thumbnail_size_w\n \n 1000\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:22 GMT'
19 | Connection: close
20 | Content-Length: '486'
21 | body: "\n\n \n \n \n \n thumbnail_size_w\n descThumbnail Width\n readonly0\n value1000\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-delete-post-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n post_type\n \n post\n \n \n \n post_status\n \n publish\n \n \n \n comment_status\n \n open\n \n \n \n post_title\n \n testDeletePostNoPrivilege\n \n \n \n post_content\n \n testDeletePostNoPrivilege\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:57 GMT'
19 | Connection: close
20 | Content-Length: '177'
21 | body: "\n\n \n \n \n 22\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.deletePost\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 22\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:20:58 GMT'
39 | Connection: close
40 | Content-Length: '425'
41 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n Sorry, you do not have the right to delete this post.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-delete-post-with-invalid-id-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.deletePost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n -1\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:57 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid post ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-edit-post-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n post_type\n \n post\n \n \n \n post_status\n \n publish\n \n \n \n comment_status\n \n open\n \n \n \n post_title\n \n testEditPostNoPrivilege\n \n \n \n post_content\n \n testEditPostNoPrivilege\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:54 GMT'
19 | Connection: close
20 | Content-Length: '177'
21 | body: "\n\n \n \n \n 18\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.editPost\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 18\n \n \n \n \n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:20:54 GMT'
39 | Connection: close
40 | Content-Length: '417'
41 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n Sorry, you are not allowed to edit this post.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-edit-post-with-invalid-id-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.editPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n -1\n \n \n \n \n \n \n post_title\n \n Lorem Ipsum (edited)\n \n \n \n post_content\n \n Muahahaha!\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:52 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid post ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-error-invalid-post-id-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n -1\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:41 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid post ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-error-not-have-permission-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n post_type\n \n post\n \n \n \n post_status\n \n publish\n \n \n \n comment_status\n \n open\n \n \n \n post_title\n \n testGetPostErrorNotHavePermission\n \n \n \n post_content\n \n testGetPostErrorNotHavePermission\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:40 GMT'
19 | Connection: close
20 | Content-Length: '176'
21 | body: "\n\n \n \n \n 4\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getPost\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 4\n \n \n \n \n \n \n \n post_title\n \n \n post_status\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:20:40 GMT'
39 | Connection: close
40 | Content-Length: '405'
41 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n Sorry, you cannot edit this post.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-formats-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPostFormats\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:00 GMT'
19 | Connection: close
20 | Content-Length: '426'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n You are not allowed access to details about this site.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-formats-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPostFormats\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:00 GMT'
19 | Connection: close
20 | Content-Length: '934'
21 | body: "\n\n \n \n \n \n standardStandard\n asideAside\n chatChat\n galleryGallery\n linkLink\n imageImage\n quoteQuote\n statusStatus\n videoVideo\n audioAudio\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-status-list-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPostStatusList\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:01 GMT'
19 | Connection: close
20 | Content-Length: '426'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n You are not allowed access to details about this site.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-status-list-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPostStatusList\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:01 GMT'
19 | Connection: close
20 | Content-Length: '497'
21 | body: "\n\n \n \n \n \n draftDraft\n pendingPending Review\n privatePrivate\n publishPublished\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-type-invalid-name-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPostType\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n post_foo\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:58 GMT'
19 | Connection: close
20 | Content-Length: '389'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Invalid post type\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-type-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPostType\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n post\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:58 GMT'
19 | Connection: close
20 | Content-Length: '422'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n Sorry, you are not allowed to edit this post type.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-type-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPostType\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n post\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:58 GMT'
19 | Connection: close
20 | Content-Length: '1547'
21 | body: "\n\n \n \n \n \n namepost\n labelPosts\n hierarchical0\n public1\n show_ui1\n _builtin1\n has_archive0\n supports\n title1\n editor1\n author1\n thumbnail1\n excerpt1\n trackbacks1\n custom-fields1\n comments1\n revisions1\n post-formats1\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-types-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPostTypes\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:00 GMT'
19 | Connection: close
20 | Content-Length: '187'
21 | body: "\n\n \n \n \n \n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-types-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPostTypes\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:00 GMT'
19 | Connection: close
20 | Content-Length: '5438'
21 | body: "\n\n \n \n \n \n post\n namepost\n labelPosts\n hierarchical0\n public1\n show_ui1\n _builtin1\n has_archive0\n supports\n title1\n editor1\n author1\n thumbnail1\n excerpt1\n trackbacks1\n custom-fields1\n comments1\n revisions1\n post-formats1\n\n\n page\n namepage\n labelPages\n hierarchical1\n public1\n show_ui1\n _builtin1\n has_archive0\n supports\n title1\n editor1\n author1\n thumbnail1\n page-attributes1\n custom-fields1\n comments1\n revisions1\n\n\n attachment\n nameattachment\n labelMedia\n hierarchical0\n public1\n show_ui1\n _builtin1\n has_archive0\n supports\n title1\n author1\n comments1\n\n\n revision\n namerevision\n labelRevisions\n hierarchical0\n public0\n show_ui0\n _builtin1\n has_archive0\n supports\n author1\n\n\n nav_menu_item\n namenav_menu_item\n labelNavigation Menu Items\n hierarchical0\n public0\n show_ui0\n _builtin1\n has_archive0\n supports\n title1\n editor1\n\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-post-with-fields-return-ok-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPosts\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n number\n \n 1\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:38 GMT'
19 | Connection: close
20 | Content-Length: '3291'
21 | body: "\n\n \n \n \n \n \n post_id1\n post_titleHello world!\n post_date20160202T08:35:48\n post_date_gmt20160202T08:35:48\n post_modified20160202T08:35:48\n post_modified_gmt20160202T08:35:48\n post_statuspublish\n post_typepost\n post_namehello-world\n post_author1\n post_password\n post_excerpt\n post_contentWelcome to WordPress. This is your first post. Edit or delete it, then start writing!\n post_parent0\n post_mime_type\n linkhttp://wp_domain/2016/02/02/hello-world/\n guidhttp://wp_domain/?p=1\n menu_order0\n comment_statusopen\n ping_statusopen\n sticky0\n post_thumbnail\n\n post_formatstandard\n terms\n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count1\n filterraw\n\n\n custom_fields\n\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 1\n \n \n \n \n \n \n \n post_title\n \n \n post_status\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:20:38 GMT'
39 | Connection: close
40 | Content-Length: '419'
41 | body: "\n\n \n \n \n \n post_id1\n post_titleHello world!\n post_statuspublish\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-posts-return-empty-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPosts\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:37 GMT'
19 | Connection: close
20 | Content-Length: '424'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You are not allowed to edit posts in this post type.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-posts-with-default-config-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPosts\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:37 GMT'
19 | Connection: close
20 | Content-Length: '3291'
21 | body: "\n\n \n \n \n \n \n post_id1\n post_titleHello world!\n post_date20160202T08:35:48\n post_date_gmt20160202T08:35:48\n post_modified20160202T08:35:48\n post_modified_gmt20160202T08:35:48\n post_statuspublish\n post_typepost\n post_namehello-world\n post_author1\n post_password\n post_excerpt\n post_contentWelcome to WordPress. This is your first post. Edit or delete it, then start writing!\n post_parent0\n post_mime_type\n linkhttp://wp_domain/2016/02/02/hello-world/\n guidhttp://wp_domain/?p=1\n menu_order0\n comment_statusopen\n ping_statusopen\n sticky0\n post_thumbnail\n\n post_formatstandard\n terms\n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count1\n filterraw\n\n\n custom_fields\n\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-posts-with-fields-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPosts\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n post_id\n \n \n post_date\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:37 GMT'
19 | Connection: close
20 | Content-Length: '407'
21 | body: "\n\n \n \n \n \n \n post_id1\n post_date20160202T08:35:48\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-get-posts-with-filters-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPosts\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n number\n \n 5\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:37 GMT'
19 | Connection: close
20 | Content-Length: '3291'
21 | body: "\n\n \n \n \n \n \n post_id1\n post_titleHello world!\n post_date20160202T08:35:48\n post_date_gmt20160202T08:35:48\n post_modified20160202T08:35:48\n post_modified_gmt20160202T08:35:48\n post_statuspublish\n post_typepost\n post_namehello-world\n post_author1\n post_password\n post_excerpt\n post_contentWelcome to WordPress. This is your first post. Edit or delete it, then start writing!\n post_parent0\n post_mime_type\n linkhttp://wp_domain/2016/02/02/hello-world/\n guidhttp://wp_domain/?p=1\n menu_order0\n comment_statusopen\n ping_statusopen\n sticky0\n post_thumbnail\n\n post_formatstandard\n terms\n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count1\n filterraw\n\n\n custom_fields\n\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-new-post-invalid-term-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n post_type\n \n post\n \n \n \n post_status\n \n publish\n \n \n \n comment_status\n \n open\n \n \n \n terms\n \n \n \n category\n \n \n \n \n 2000\n \n \n 2001\n \n \n \n \n \n \n \n \n \n post_title\n \n Foo title\n \n \n \n post_content\n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:45 GMT'
19 | Connection: close
20 | Content-Length: '387'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Invalid term ID\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-new-post-invalid-thumbnail-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n post_type\n \n post\n \n \n \n post_status\n \n publish\n \n \n \n comment_status\n \n open\n \n \n \n post_thumbnail\n \n 9999\n \n \n \n post_title\n \n \n \n \n \n post_content\n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:45 GMT'
19 | Connection: close
20 | Content-Length: '394'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid attachment ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-new-post-minimal-info-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n post_type\n \n post\n \n \n \n post_status\n \n publish\n \n \n \n comment_status\n \n open\n \n \n \n post_title\n \n Lorem ipsum\n \n \n \n post_content\n \n This is a demo post\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:42 GMT'
19 | Connection: close
20 | Content-Length: '176'
21 | body: "\n\n \n \n \n 6\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 6\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:20:42 GMT'
39 | Connection: close
40 | Content-Length: '3177'
41 | body: "\n\n \n \n \n \n post_id6\n post_titleLorem ipsum\n post_date20160202T09:20:42\n post_date_gmt20160202T09:20:42\n post_modified20160202T09:20:42\n post_modified_gmt20160202T09:20:42\n post_statuspublish\n post_typepost\n post_namelorem-ipsum\n post_author1\n post_password\n post_excerpt\n post_contentThis is a demo post\n post_parent0\n post_mime_type\n linkhttp://wp_domain/2016/02/02/lorem-ipsum/\n guidhttp://wp_domain/?p=6\n menu_order0\n comment_statusopen\n ping_statusopen\n sticky0\n post_thumbnail\n\n post_formatstandard\n terms\n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count3\n filterraw\n\n\n custom_fields\n\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-new-post-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newPost\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n post_type\n \n post\n \n \n \n post_status\n \n publish\n \n \n \n comment_status\n \n open\n \n \n \n post_title\n \n testNewPostNoPrivilege\n \n \n \n post_content\n \n testNewPostNoPrivilege\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:45 GMT'
19 | Connection: close
20 | Content-Length: '420'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n Sorry, you are not allowed to post on this site.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-new-post-with-advanced-fields-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n post_type\n \n post\n \n \n \n post_status\n \n publish\n \n \n \n comment_status\n \n open\n \n \n \n post_date\n \n 20140101T00:00:00+0700\n \n \n \n custom_fields\n \n \n \n \n \n \n key\n \n foo\n \n \n \n value\n \n bar\n \n \n \n \n \n \n \n \n \n post_title\n \n Lorem ipsum advanced\n \n \n \n post_content\n \n This is a demo post\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:44 GMT'
19 | Connection: close
20 | Content-Length: '176'
21 | body: "\n\n \n \n \n 8\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 8\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:20:44 GMT'
39 | Connection: close
40 | Content-Length: '3452'
41 | body: "\n\n \n \n \n \n post_id8\n post_titleLorem ipsum advanced\n post_date20140101T00:00:00\n post_date_gmt20131231T17:00:00\n post_modified20160202T09:20:44\n post_modified_gmt20160202T09:20:44\n post_statuspublish\n post_typepost\n post_namelorem-ipsum-advanced\n post_author1\n post_password\n post_excerpt\n post_contentThis is a demo post\n post_parent0\n post_mime_type\n linkhttp://wp_domain/2014/01/01/lorem-ipsum-advanced/\n guidhttp://wp_domain/?p=8\n menu_order0\n comment_statusopen\n ping_statusopen\n sticky0\n post_thumbnail\n\n post_formatstandard\n terms\n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count4\n filterraw\n\n\n custom_fields\n \n id4\n keyfoo\n valuebar\n\n\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/posts/test-new-post-with-utf8-content-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n post_type\n \n post\n \n \n \n post_status\n \n publish\n \n \n \n comment_status\n \n open\n \n \n \n post_title\n \n Đây là một tiêu đề ở định dạng UTF-8\n \n \n \n post_content\n \n Lorem Ipsum chỉ đơn giản là một đoạn văn bản giả, được dùng vào việc trình bày và dàn trang phục vụ cho in ấn\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:44 GMT'
19 | Connection: close
20 | Content-Length: '177'
21 | body: "\n\n \n \n \n 30\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getPost\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 30\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:46 GMT'
39 | Connection: close
40 | Content-Length: '3396'
41 | body: "\n\n \n \n \n \n post_id30\n post_titleĐây là một tiêu đề ở định dạng UTF-8\n post_date20160202T09:21:45\n post_date_gmt20160202T09:21:45\n post_modified20160202T09:21:45\n post_modified_gmt20160202T09:21:45\n post_statuspublish\n post_typepost\n post_nameday-la-mot-tieu-de-o-dinh-dang-utf-8\n post_author1\n post_password\n post_excerpt\n post_contentLorem Ipsum chỉ đơn giản là một đoạn văn bản giả, được dùng vào việc trình bày và dàn trang phục vụ cho in ấn\n post_parent0\n post_mime_type\n linkhttp://wp_domain/2016/02/02/day-la-mot-tieu-de-o-dinh-dang-utf-8/\n guidhttp://wp_domain/?p=30\n menu_order0\n comment_statusopen\n ping_statusopen\n sticky0\n post_thumbnail\n\n post_formatstandard\n terms\n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count10\n filterraw\n\n\n custom_fields\n\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-delete-term-invalid-taxonomy-name-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.deleteTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category-foo\n \n \n \n \n 28\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:14 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Invalid taxonomy\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-delete-term-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerms\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n \n \n number\n \n 1\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:12 GMT'
19 | Connection: close
20 | Content-Length: '994'
21 | body: "\n\n \n \n \n \n \n term_id3\n nameCategory Lorem\n slugcat-lorem\n term_group0\n term_taxonomy_id3\n taxonomycategory\n descriptionLorem Ipsum\n parent0\n count0\n filterraw\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.deleteTerm\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n 3\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:12 GMT'
39 | Connection: close
40 | Content-Length: '425'
41 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You are not allowed to delete terms in this taxonomy.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-delete-term-not-exist-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.deleteTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n 444\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:14 GMT'
19 | Connection: close
20 | Content-Length: '387'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid term ID\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-delete-term-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n Deleted term\n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:11 GMT'
19 | Connection: close
20 | Content-Length: '176'
21 | body: "\n\n \n \n \n 6\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.deleteTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n 6\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:12 GMT'
39 | Connection: close
40 | Content-Length: '178'
41 | body: "\n\n \n \n \n 1\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-edit-term-empty-name-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerms\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n \n \n number\n \n 1\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:10 GMT'
19 | Connection: close
20 | Content-Length: '994'
21 | body: "\n\n \n \n \n \n \n term_id3\n nameCategory Lorem\n slugcat-lorem\n term_group0\n term_taxonomy_id3\n taxonomycategory\n descriptionLorem Ipsum\n parent0\n count0\n filterraw\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.editTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 3\n \n \n \n \n \n \n name\n \n \n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:10 GMT'
39 | Connection: close
40 | Content-Length: '402'
41 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n The term name cannot be empty.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-edit-term-invalid-parent-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerms\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n \n \n number\n \n 1\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:10 GMT'
19 | Connection: close
20 | Content-Length: '994'
21 | body: "\n\n \n \n \n \n \n term_id3\n nameCategory Lorem\n slugcat-lorem\n term_group0\n term_taxonomy_id3\n taxonomycategory\n descriptionLorem Ipsum\n parent0\n count0\n filterraw\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.editTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 3\n \n \n \n \n \n \n parent\n \n 999\n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:11 GMT'
39 | Connection: close
40 | Content-Length: '399'
41 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Parent term does not exist.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-edit-term-invalid-taxonomy-name-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.editTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 47\n \n \n \n \n \n \n taxonomy\n \n category-foo\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:10 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Invalid taxonomy\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-edit-term-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerms\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n \n \n number\n \n 1\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:09 GMT'
19 | Connection: close
20 | Content-Length: '994'
21 | body: "\n\n \n \n \n \n \n term_id3\n nameCategory Lorem\n slugcat-lorem\n term_group0\n term_taxonomy_id3\n taxonomycategory\n descriptionLorem Ipsum\n parent0\n count0\n filterraw\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.editTerm\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 3\n \n \n \n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:09 GMT'
39 | Connection: close
40 | Content-Length: '423'
41 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You are not allowed to edit terms in this taxonomy.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-edit-term-not-exist-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.editTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 444\n \n \n \n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:11 GMT'
19 | Connection: close
20 | Content-Length: '387'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid term ID\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-edit-term-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n Created to delete\n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:07 GMT'
19 | Connection: close
20 | Content-Length: '176'
21 | body: "\n\n \n \n \n 5\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.editTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 5\n \n \n \n \n \n \n name\n \n Category Lorem 2\n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:09 GMT'
39 | Connection: close
40 | Content-Length: '178'
41 | body: "\n\n \n \n \n 1\n \n \n \n\n"
42 | -
43 | request:
44 | method: POST
45 | url: 'http://WP_DOMAIN/xmlrpc.php'
46 | headers:
47 | Host: WP_DOMAIN
48 | body: "\n\nwp.getTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n 5\n \n \n\n\n"
49 | response:
50 | status:
51 | http_version: '1.1'
52 | code: '200'
53 | message: OK
54 | headers:
55 | Content-Type: 'text/xml; charset=UTF-8'
56 | Server: Microsoft-IIS/7.5
57 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
58 | Date: 'Tue, 02 Feb 2016 09:21:09 GMT'
59 | Connection: close
60 | Content-Length: '946'
61 | body: "\n\n \n \n \n \n term_id5\n nameCategory Lorem 2\n slugcreated-to-delete\n term_group0\n term_taxonomy_id5\n taxonomycategory\n description\n parent0\n count0\n filterraw\n\n \n \n \n\n"
62 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-taxonomies-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTaxonomies\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:02 GMT'
19 | Connection: close
20 | Content-Length: '187'
21 | body: "\n\n \n \n \n \n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-taxonomy-invalid-name-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTaxonomy\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n foo\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:02 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Invalid taxonomy\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-taxonomy-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTaxonomy\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:01 GMT'
19 | Connection: close
20 | Content-Length: '425'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You are not allowed to assign terms in this taxonomy.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-taxonomy-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTaxonomy\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:01 GMT'
19 | Connection: close
20 | Content-Length: '3154'
21 | body: "\n\n \n \n \n \n namecategory\n labelCategories\n hierarchical1\n public1\n show_ui1\n _builtin1\n labels\n nameCategories\n singular_nameCategory\n search_itemsSearch Categories\n popular_items\n all_itemsAll Categories\n parent_itemParent Category\n parent_item_colonParent Category:\n edit_itemEdit Category\n view_itemView Category\n update_itemUpdate Category\n add_new_itemAdd New Category\n new_item_nameNew Category Name\n separate_items_with_commas\n add_or_remove_items\n choose_from_most_used\n not_foundNo categories found.\n no_termsNo categories\n items_list_navigationCategories list navigation\n items_listCategories list\n menu_nameCategories\n name_admin_barcategory\n\n cap\n manage_termsmanage_categories\n edit_termsmanage_categories\n delete_termsmanage_categories\n assign_termsedit_posts\n\n object_type\n post\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-term-invalid-taxonomy-name-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n foo\n \n \n \n \n -1\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:04 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Invalid taxonomy\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-term-invalid-term-id-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n -1\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:04 GMT'
19 | Connection: close
20 | Content-Length: '387'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid term ID\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-term-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerm\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n 23\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:04 GMT'
19 | Connection: close
20 | Content-Length: '425'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You are not allowed to assign terms in this taxonomy.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-term-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerms\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n \n \n number\n \n 1\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:03 GMT'
19 | Connection: close
20 | Content-Length: '986'
21 | body: "\n\n \n \n \n \n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count8\n filterraw\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n 1\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:03 GMT'
39 | Connection: close
40 | Content-Length: '939'
41 | body: "\n\n \n \n \n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count8\n filterraw\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-terms-invalid-taxonomy-name-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerms\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n foo\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:03 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Invalid taxonomy\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-terms-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerms\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n post_tag\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:03 GMT'
19 | Connection: close
20 | Content-Length: '425'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You are not allowed to assign terms in this taxonomy.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-get-terms-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getTerms\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:02 GMT'
19 | Connection: close
20 | Content-Length: '986'
21 | body: "\n\n \n \n \n \n \n term_id1\n nameUncategorized\n sluguncategorized\n term_group0\n term_taxonomy_id1\n taxonomycategory\n description\n parent0\n count8\n filterraw\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-new-term-empty-name-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n \n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:06 GMT'
19 | Connection: close
20 | Content-Length: '402'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n The term name cannot be empty.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-new-term-invalid-parent-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n Tag Foo\n \n \n \n taxonomy\n \n category\n \n \n \n parent\n \n 999\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:07 GMT'
19 | Connection: close
20 | Content-Length: '399'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Parent term does not exist.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-new-term-invalid-taxonomy-name-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n foo\n \n \n \n taxonomy\n \n category-foo\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:06 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Invalid taxonomy\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-new-term-no-hierachical-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n Tag bar\n \n \n \n taxonomy\n \n post_tag\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:07 GMT'
19 | Connection: close
20 | Content-Length: '176'
21 | body: "\n\n \n \n \n 4\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n Tag Foo\n \n \n \n taxonomy\n \n post_tag\n \n \n \n parent\n \n 4\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:07 GMT'
39 | Connection: close
40 | Content-Length: '406'
41 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n This taxonomy is not hierarchical.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-new-term-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n foo\n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:06 GMT'
19 | Connection: close
20 | Content-Length: '425'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You are not allowed to create terms in this taxonomy.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-new-term-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n Category Lorem Ipsum\n \n \n \n taxonomy\n \n category\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:05 GMT'
19 | Connection: close
20 | Content-Length: '176'
21 | body: "\n\n \n \n \n 2\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n 2\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:05 GMT'
39 | Connection: close
40 | Content-Length: '953'
41 | body: "\n\n \n \n \n \n term_id2\n nameCategory Lorem Ipsum\n slugcategory-lorem-ipsum\n term_group0\n term_taxonomy_id2\n taxonomycategory\n description\n parent0\n count0\n filterraw\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/taxonomies/test-new-term-with-more-info-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.newTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n name\n \n Category Lorem\n \n \n \n taxonomy\n \n category\n \n \n \n slug\n \n cat-lorem\n \n \n \n description\n \n Lorem Ipsum\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:05 GMT'
19 | Connection: close
20 | Content-Length: '176'
21 | body: "\n\n \n \n \n 3\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getTerm\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n category\n \n \n \n \n 3\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:06 GMT'
39 | Connection: close
40 | Content-Length: '947'
41 | body: "\n\n \n \n \n \n term_id3\n nameCategory Lorem\n slugcat-lorem\n term_group0\n term_taxonomy_id3\n taxonomycategory\n descriptionLorem Ipsum\n parent0\n count0\n filterraw\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/test-login-failed-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getPosts\n\n \n \n 1\n \n \n \n \n admin\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:20:34 GMT'
19 | Connection: close
20 | Content-Length: '403'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Incorrect username or password.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/test-on-sending-callbacks-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getProfile\n\n \n \n 1\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:44 GMT'
19 | Connection: close
20 | Content-Length: '403'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n Incorrect username or password.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/users/test-edit-profile-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.editProfile\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n nickname\n \n JD\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:39 GMT'
19 | Connection: close
20 | Content-Length: '178'
21 | body: "\n\n \n \n \n 1\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getProfile\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:40 GMT'
39 | Connection: close
40 | Content-Length: '1181'
41 | body: "\n\n \n \n \n \n user_id1\n usernameWP_USER\n first_name\n last_name\n registered20160202T08:35:45\n bio\n emailhieu@hieule.info\n nicknameJD\n nicenamewp_user\n url\n display_nameWP_USER\n roles\n administrator\n\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/users/test-get-profile-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getProfile\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:36 GMT'
19 | Connection: close
20 | Content-Length: '1186'
21 | body: "\n\n \n \n \n \n user_id1\n usernameWP_USER\n first_name\n last_name\n registered20160202T08:35:45\n bio\n emailhieu@hieule.info\n nicknameWP_USER\n nicenamewp_user\n url\n display_nameWP_USER\n roles\n administrator\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getProfile\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n user_id\n \n \n email\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:36 GMT'
39 | Connection: close
40 | Content-Length: '335'
41 | body: "\n\n \n \n \n \n user_id1\n emailhieu@hieule.info\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/users/test-get-user-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getProfile\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:36 GMT'
19 | Connection: close
20 | Content-Length: '1186'
21 | body: "\n\n \n \n \n \n user_id1\n usernameWP_USER\n first_name\n last_name\n registered20160202T08:35:45\n bio\n emailhieu@hieule.info\n nicknameWP_USER\n nicenamewp_user\n url\n display_nameWP_USER\n roles\n administrator\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getUser\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 1\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:37 GMT'
39 | Connection: close
40 | Content-Length: '401'
41 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n Sorry, you cannot edit users.\n \n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/fixtures/users/test-get-user-not-exist-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getUser\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n -1\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:37 GMT'
19 | Connection: close
20 | Content-Length: '388'
21 | body: "\n\n \n \n \n \n faultCode\n 404\n \n \n faultString\n Invalid user ID.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/users/test-get-user-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getProfile\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:37 GMT'
19 | Connection: close
20 | Content-Length: '1186'
21 | body: "\n\n \n \n \n \n user_id1\n usernameWP_USER\n first_name\n last_name\n registered20160202T08:35:45\n bio\n emailhieu@hieule.info\n nicknameWP_USER\n nicenamewp_user\n url\n display_nameWP_USER\n roles\n administrator\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getUser\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 1\n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:37 GMT'
39 | Connection: close
40 | Content-Length: '1186'
41 | body: "\n\n \n \n \n \n user_id1\n usernameWP_USER\n first_name\n last_name\n registered20160202T08:35:45\n bio\n emailhieu@hieule.info\n nicknameWP_USER\n nicenamewp_user\n url\n display_nameWP_USER\n roles\n administrator\n\n\n \n \n \n\n"
42 | -
43 | request:
44 | method: POST
45 | url: 'http://WP_DOMAIN/xmlrpc.php'
46 | headers:
47 | Host: WP_DOMAIN
48 | body: "\n\nwp.getUser\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n 1\n \n \n \n \n \n \n \n user_id\n \n \n email\n \n \n \n \n \n\n\n"
49 | response:
50 | status:
51 | http_version: '1.1'
52 | code: '200'
53 | message: OK
54 | headers:
55 | Content-Type: 'text/xml; charset=UTF-8'
56 | Server: Microsoft-IIS/7.5
57 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
58 | Date: 'Tue, 02 Feb 2016 09:21:38 GMT'
59 | Connection: close
60 | Content-Length: '335'
61 | body: "\n\n \n \n \n \n user_id1\n emailhieu@hieule.info\n\n \n \n \n\n"
62 |
--------------------------------------------------------------------------------
/tests/fixtures/users/test-get-users-blogs-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getUsersBlogs\n\n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:36 GMT'
19 | Connection: close
20 | Content-Length: '655'
21 | body: "\n\n \n \n \n \n \n isAdmin1\n urlhttp://wp_domain/\n blogid1\n blogNameWordPress site for local test\n xmlrpchttp://wp_domain/xmlrpc.php\n\n\n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/users/test-get-users-invalid-role-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getUsers\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n role\n \n foo\n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:39 GMT'
19 | Connection: close
20 | Content-Length: '403'
21 | body: "\n\n \n \n \n \n faultCode\n 403\n \n \n faultString\n The role specified is not valid\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/users/test-get-users-no-privilege-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getUsers\n\n \n \n 1\n \n \n \n \n WP_GUEST\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:38 GMT'
19 | Connection: close
20 | Content-Length: '408'
21 | body: "\n\n \n \n \n \n faultCode\n 401\n \n \n faultString\n You are not allowed to browse users.\n \n \n \n \n\n"
22 |
--------------------------------------------------------------------------------
/tests/fixtures/users/test-get-users-vcr.yml:
--------------------------------------------------------------------------------
1 |
2 | -
3 | request:
4 | method: POST
5 | url: 'http://WP_DOMAIN/xmlrpc.php'
6 | headers:
7 | Host: WP_DOMAIN
8 | body: "\n\nwp.getUsers\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n\n\n"
9 | response:
10 | status:
11 | http_version: '1.1'
12 | code: '200'
13 | message: OK
14 | headers:
15 | Content-Type: 'text/xml; charset=UTF-8'
16 | Server: Microsoft-IIS/7.5
17 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
18 | Date: 'Tue, 02 Feb 2016 09:21:38 GMT'
19 | Connection: close
20 | Content-Length: '2281'
21 | body: "\n\n \n \n \n \n \n user_id2\n usernameWP_GUEST\n first_name\n last_name\n registered20160202T08:36:28\n bio\n emailguest@hieule.info\n nicknameWP_GUEST\n nicenamewp_guest\n url\n display_nameWP_GUEST\n roles\n subscriber\n\n\n \n user_id1\n usernameWP_USER\n first_name\n last_name\n registered20160202T08:35:45\n bio\n emailhieu@hieule.info\n nicknameWP_USER\n nicenamewp_user\n url\n display_nameWP_USER\n roles\n administrator\n\n\n\n \n \n \n\n"
22 | -
23 | request:
24 | method: POST
25 | url: 'http://WP_DOMAIN/xmlrpc.php'
26 | headers:
27 | Host: WP_DOMAIN
28 | body: "\n\nwp.getUsers\n\n \n \n 1\n \n \n \n \n WP_USER\n \n \n \n \n WP_PASSWORD\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n user_id\n \n \n email\n \n \n \n \n \n\n\n"
29 | response:
30 | status:
31 | http_version: '1.1'
32 | code: '200'
33 | message: OK
34 | headers:
35 | Content-Type: 'text/xml; charset=UTF-8'
36 | Server: Microsoft-IIS/7.5
37 | X-Powered-By: 'PHP/7.0.0, ASP.NET'
38 | Date: 'Tue, 02 Feb 2016 09:21:39 GMT'
39 | Connection: close
40 | Content-Length: '578'
41 | body: "\n\n \n \n \n \n \n user_id2\n emailguest@hieule.info\n\n \n user_id1\n emailhieu@hieule.info\n\n\n \n \n \n\n"
42 |
--------------------------------------------------------------------------------
/tests/image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/letrunghieu/wordpress-xmlrpc-client/4eced3821b41ba21ce314569b79d7302d65f4b16/tests/image.jpg
--------------------------------------------------------------------------------
/tests/xmlrpc.yml:
--------------------------------------------------------------------------------
1 | endpoint: ''
2 | admin_login: ''
3 | admin_password: ''
4 | guest_login: ''
5 | guest_password: ''
6 |
--------------------------------------------------------------------------------