woo_api

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

woo api

WooApi is a package for WooCommerce rest API (v3) plugin based on wordpress stores. which make web services and models much easier.
With WooApi you can not only output a response, but also retrieve modeled objects and their properties.
See also:

The official WooCommerce API docs, which showcases how to use woocommerc
Postman API docs, which contains an implementation of that app using postman

Features #

Data from/to json has already been modeled
A singleton class at the top of your app
A vastly reduced boilerplate over making models
Implementation by providing your credentials of the WooCommerce

Getting started #
TODO: List prerequisites and provide or point to information on how to
start using the package.
Usage #
final wooApi = WooApi(
scheme: 'HTTP_OR_HTTPS',
host: 'www.yourwordpressdomain.com',
consumerKey: 'YOUR_CONSUMER_KEY',
consumerSecret: 'YOUR_SECRET_KEY');

final response = await wooApi.getProductById(140);
copied to clipboard
void main()async{
final wooApi = WooApi(
scheme: 'YOUR_SCHEMA',
host: 'www.yourwordpressdomain.com',
consumerKey: 'YOUR_CONSUMER_KEY',
consumerSecret: 'YOUR_SECRET_KEY');

// use try catch to handel errors
try{
final response = await wooApi.getProductById(140);

}catch(e){
// handel the errors
}



}
copied to clipboard
For more info #
@alfatihtalab |
Linkedin |
Twitter |
Stackoverflow

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.