mjavadhpour / pzz-api-client Goto Github PK
View Code? Open in Web Editor NEWSimple REST APIs for WordPress
Home Page: https://wordpress.org/plugins/pzz-api-client/
License: GNU General Public License v2.0
Simple REST APIs for WordPress
Home Page: https://wordpress.org/plugins/pzz-api-client/
License: GNU General Public License v2.0
=== PZZ API Client === Contributors: mjavadhpour, thisismzm Tags: RESTful API, API, Mobile, Shopping, WooCommerce Requires at least: 4.2 Tested up to: 6.1 Requires PHP: 7 License: GPL-2.0+ License URI: http://www.gnu.org/licenses/gpl-2.0.txt Stable tag: 1.2.8 Provides a set of RESTful APIs, developed specifically for Mobile clients that want to connect to your WordPress/WooCommerce website. == Description == PZZ API Client provides a set of RESTful APIs, developed specifically for Mobile clients to connect to your WordPress website. This plugin support some specific APIs such as posts, taxonomies, comments, and WooCommerce. We plan to support more APIs. It is possible to authenticate a user using any of the following WP REST API authentication methods such as: - JWT Authentication for WP REST API == Installation == First of all you need to enable [pretty permalinks](https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/#overview) at Settings > Permalink > Permalink structure > Select Post name. after that you can review the APIs at <BASE_URL>/wp-json/pzz/v1. Install latest version from [wordpress](https://wordpress.org/plugins/pzz-api-client/) or Download the latest stable version from [GitHub](https://github.com/mjavadhpour/pzz-api-client/releases) and upload it into your WordPress site. == Frequently Asked Questions == Feel free to open an Issue at [This Link](https://github.com/mjavadhpour/pzz-api-client/issues), Also you can track the developing process from [GitHub](https://github.com/mjavadhpour/pzz-api-client/milestones). == Changelog == = 1.2.8 = * Refactor source code. * Test up to wordpress 6. * Update github repo. * Fix branching strategy in github. * Update documentation. = 1.2.7 = * Bug fix = 1.2.6 = * Bug fix = 1.2.5 = * Fix post API (GET). = 1.2.4 = * Update plugin description. * Bug Fixing. = 1.2.3 = * Use hook instead of filter. = 1.2.2 = * Bug Fixing. = 1.2.1 = * Bug Fixing. = 1.2.0 = * Add Support for WooCommerce. = 1.1.6 = * Use isolated filters, these filters run just when the endpoint was called. we provide these filters because the plugin adds target="_blank" to all links even when the website serves a page. = 1.1.5 = * Resolve conflicts with reactor-core. = 1.1.4 = * Fix WordPress trademarked name with plugin name. = 1.1.3 = * Update readme and plugin description. = 1.1.2 = * Use WordPress filters to replace links and fix the functionality of replaced links. = 1.1.1 = * Fix get all posts API error. = 1.1.0 = * Replace all links int the post description by in post API. = 1.0.0 = * Basic functionality. * Post API. * Taxonomies. * Post comments. == Upgrade Notice == If you install plugin manually, please remove the previous version and install the new one.
Add JWT authentication capability to plugin.
Features:
When Woo-commerce is not installed, we should not include Woo-commerce feature classes and APIs.
Example:
In class-pzz-api-client.php
require_once plugin_dir_path(dirname(__FILE__)) . 'includes/lib/woocommerce/extends/api/class-pzz-wc-api-server.php';
require_once plugin_dir_path(dirname(__FILE__)) . 'includes/lib/woocommerce/extends/api/class-pzz-wc-api-resource.php';
require_once plugin_dir_path(dirname(__FILE__)) . 'includes/lib/woocommerce/extends/api/class-pzz-wc-api-orders.php';
or
class-pzz-api-client.php
/**
* Woocommerce related routes
* @since 1.2.0
*/
$wc_core = new PZZ_WC_API_Controller('pzz/wc', $this->get_api_version('wc'));
$routes[] = [
'method' => 'GET',
'handler' => $wc_core,
'path' => 'orders',
'callback' => 'get_current_user_orders',
'args' => function () {
return [];
},
'is_secure' => true
];
should not be included.
Get user information like user avatar, name, email, purchased products, address and other available information about a user.
The plugin should be retrieved min and max price in the whole store or a specific category
Provides a set of RESTful APIs, developed specifically for Mobile clients that want to connect to your WordPress website.
PZZ API Client provides a set of RESTful APIs, developed specifically for Mobile clients to connect to your WordPress website.
This plugin support some specific APIs such as posts, taxonomies, comments. We plan to support more APIs (eg. WooCommerce).
It is possible to authenticate a user using any of the following WP REST API authentication methods such as:
- JWT Authentication for WP REST API
4.2
WooCommerce:
Authors:
New API to edit user profile data + reset the password.
[[type1 = term], [type2 = term]]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.