=== GET API Manager === Contributors: Syed Gohar Ali Tags: woocommerce, rest api, orders, api, app password, get Requires at least: 5.6 Tested up to: 6.8 Requires PHP: 7.2 Stable tag: 1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html == Description == Provides REST API endpoints for WooCommerce orders, blog posts, and pages, plus a setup wizard for API user/app password. Easily integrate your WooCommerce store and WordPress content with external systems using secure, app-password-protected API endpoints. = Features = * Secure REST API endpoints for WooCommerce orders, blog posts, and pages * Setup wizard to generate API user and app password * Supports listing and retrieving orders, posts, and pages * Example usage and cURL commands in the admin UI == Installation == 1. Upload the plugin files to the `/wp-content/plugins/get-api-manager` directory, or install the plugin through the WordPress plugins screen directly. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Go to 'GET API Manager' in the admin menu to generate your API user and app password. 4. Use the credentials to authenticate your API requests. == Frequently Asked Questions == = Do I need WooCommerce installed? = Yes, WooCommerce must be installed and active for this plugin to work. = How do I authenticate API requests? = Use the generated username and app password with Basic Authentication for your API requests. = Can I regenerate the app password? = Yes, you can regenerate the app password at any time from the plugin settings page. == Screenshots == 1. Setup wizard and API credentials display in the admin area. 2. Example API usage and cURL commands. == Changelog == = 1.0 = * Initial release. == Upgrade Notice == = 1.0 = Initial release with WooCommerce orders API endpoints and setup wizard. = API Endpoints = == Orders == * `GET /wp-json/get-api-manager/v1/orders?limit=25&order=DESC` — List latest orders * `GET /wp-json/get-api-manager/v1/orders/{id}` — Get a single order by ID * `GET /wp-json/get-api-manager/v1/orders?status=completed` — List completed orders * `GET /wp-json/get-api-manager/v1/orders?status=processing` — List processing orders * `GET /wp-json/get-api-manager/v1/orders?date=YYYY-MM-DD` — List orders created on a specific date * `GET /wp-json/get-api-manager/v1/orders?order_by=date` — List orders sorted by date == Posts == * `GET /wp-json/get-api-manager/v1/posts?limit=10&order=DESC` — List latest blog posts == Pages == * `GET /wp-json/get-api-manager/v1/pages?limit=5&order=ASC` — List published pages == Authentication == All endpoints require Basic Authentication using the generated API user and app password. Use the credentials from the plugin settings page. == Example cURL == ``` curl -u "api_username:app_password" "https://your-site.com/wp-json/get-api-manager/v1/orders?limit=10" ```