{"id":21813075,"url":"https://github.com/webdevstudios/wds-wp-rest-api-connect-ui","last_synced_at":"2025-04-13T23:26:06.735Z","repository":{"id":62547527,"uuid":"44979216","full_name":"WebDevStudios/WDS-WP-REST-API-Connect-UI","owner":"WebDevStudios","description":"Provides UI for connecting from one WordPress installation to another via the WP REST API over OAuth1 (https://github.com/WP-API/OAuth1)","archived":false,"fork":false,"pushed_at":"2016-03-24T02:20:27.000Z","size":8423,"stargazers_count":20,"open_issues_count":1,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-27T13:45:09.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebDevStudios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-26T15:51:11.000Z","updated_at":"2024-12-05T21:41:47.000Z","dependencies_parsed_at":"2022-11-02T22:15:32.463Z","dependency_job_id":null,"html_url":"https://github.com/WebDevStudios/WDS-WP-REST-API-Connect-UI","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevStudios%2FWDS-WP-REST-API-Connect-UI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevStudios%2FWDS-WP-REST-API-Connect-UI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevStudios%2FWDS-WP-REST-API-Connect-UI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevStudios%2FWDS-WP-REST-API-Connect-UI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebDevStudios","download_url":"https://codeload.github.com/WebDevStudios/WDS-WP-REST-API-Connect-UI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248795424,"owners_count":21162771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-27T14:27:04.662Z","updated_at":"2025-04-13T23:26:06.713Z","avatar_url":"https://github.com/WebDevStudios.png","language":"PHP","readme":"# WDS WP REST API Connect UI #\n**Contributors:**      WebDevStudios  \n**Donate link:**       http://webdevstudios.com  \n**Tags:**  \n**Requires at least:** 4.4.2  \n**Tested up to:**      4.4.2  \n**Stable tag:**        0.2.5  \n**License:**           GPLv2  \n**License URI:**       http://www.gnu.org/licenses/gpl-2.0.html  \n\n## Description ##\n\nProvides UI for connecting from one WordPress installation to another via the [WordPress REST API](http://wp-api.org/) over \u003ca href=\"https://github.com/WP-API/OAuth1\"\u003eOAuth1\u003c/a\u003e. This plugin is a UI wrapper for [WDS WP REST API Connect](https://github.com/WebDevStudios/WDS-WP-REST-API-Connect).\n\n#### Caveats:\n\n* To use this plugin, you will need to run `composer install` from the root of the plugin to pull in the required dependencies, or [download this zip](https://raw.githubusercontent.com/WebDevStudios/WDS-WP-REST-API-Connect-UI/master/wds-rest-connect-ui.zip).\n* Both the [WP REST API plugin](https://github.com/WP-API/WP-API) and the [OAuth plugin](https://github.com/WP-API/OAuth1) are required to be on the server you are connecting to.\n* You'll need to create a '[Client Application](http://v2.wp-api.org/guide/authentication/#oauth-authentication)' on the server. You'll be given instructions from this plugin's settings page after you save the server URL.\n\n#### Usage:\n\nOnce you've created a successful API connection via the Settings screen, you can use the the plugin's API helper function/filter. If the connection is successful, The helper function and filter both return a `WDS_WP_REST_API\\OAuth1\\Connect` object ([example usage here](https://github.com/WebDevStudios/WDS-WP-REST-API-Connect/blob/master/example.php)), which you can use to make your API requests.\n\nThe filter is an alternative to the helper function provided so that you can use in other plugins or themes without having to check if `function_exists`. To do that, simply use `$api = apply_filters( 'wds_rest_connect_ui_api_object', false );`. If the `wds_rest_connect_ui_api_object` function isn't available, you're original value, `false` will be returned. Whether using the function or the filter, you'll want to check if the `$api` object returned is a `WP_Error` object (`is_wp_error`) or a `WDS_WP_REST_API_Connect` object (`is_a( $api, 'WDS_WP_REST_API\\OAuth1\\Connect' )`) before proceeding with making requests.\n\n```php\n// Get API object\n$api = apply_filters( 'wds_rest_connect_ui_api_object', false );\n\n// If WP_Error, find out what happened.\nif ( is_wp_error( $api ) ) {\n\techo '\u003cxmp\u003e'. print_r( $api-\u003eget_error_message(), true ) .'\u003c/xmp\u003e';\n}\n\n// If a WDS_WP_REST_API\\OAuth1\\Connect object is returned, you're good to go.\nif ( is_a( $api, 'WDS_WP_REST_API\\OAuth1\\Connect' ) ) {\n\n\t$schema = $api-\u003eget_api_description();\n\n\t// Let's take a look at the API schema\n\techo '\u003cxmp\u003e$schema: '. print_r( $schema, true ) .'\u003c/xmp\u003e';\n}\n```\n\n## Installation ##\n\n### Manual Installation ###\n\n1. Upload the entire `/wds-rest-connect-ui` directory to the `/wp-content/plugins/` directory.\n2. Run `composer install` inside the `/wp-content/plugins/wds-rest-connect-ui` directory.\n3. Activate WDS WP REST API Connect UI through the 'Plugins' menu in WordPress.\n4. Update the connection settings.\n\nTo avoid step 2, [download this zip](https://raw.githubusercontent.com/WebDevStudios/WDS-WP-REST-API-Connect-UI/master/wds-rest-connect-ui.zip), unzip the file and follow steps 1, 3, and 4.\n\n## Frequently Asked Questions ##\n\n\n## Screenshots (a bit out of date since 0.2.0) ##\n\n1. Settings\n![Settings](https://raw.githubusercontent.com/WebDevStudios/WDS-WP-REST-API-Connect-UI/master/screenshot-1.png)\n\n2. After settings are saved, authentication is required.\n![After settings are saved, authentication is required.](https://raw.githubusercontent.com/WebDevStudios/WDS-WP-REST-API-Connect-UI/master/screenshot-2.png)\n\n3. Successful authentication notice which demonstrates available routes.\n![Successful authentication notice which demonstrates available routes.](https://raw.githubusercontent.com/WebDevStudios/WDS-WP-REST-API-Connect-UI/master/screenshot-3.png)\n\n## Changelog ##\n\n### 0.2.5\n* Update the wds-wp-rest-api-connect dependency to fix a typo from a variable which should be using an object property (for legacy mode).\n\n### 0.2.4\n* Update the wds-wp-rest-api-connect dependency to fix some bugs and in the `auth_request` method.\n\n### 0.2.3\n* Fix some authentication step logic, and ensure discovery is not called too often.\n* Update the wds-wp-rest-api-connect dependency to fix some bugs and add filters to request args.\n\n### 0.2.2\n* The Optional Headers fields are now available for all steps, to ensure proper headers are sent during discovery.\n* Update the wds-wp-rest-api-connect dependency, so that we use our own API Discovery library to use the WP http API, and to correctly pass any headers if they exist.\n\n### 0.2.1 ###\n* Update composer files to point to correct packagist repo for WDS WP REST API Connect.\n\n### 0.2.0 ###\n* Update to fix some security issues and work with the new version of the OAuth plugin.\n\n### 0.1.0 ###\n* First release\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevstudios%2Fwds-wp-rest-api-connect-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevstudios%2Fwds-wp-rest-api-connect-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevstudios%2Fwds-wp-rest-api-connect-ui/lists"}