woo_api 0.0.4 copy "woo_api: ^0.0.4" to clipboard
woo_api: ^0.0.4 copied to clipboard

Woocommerce rest api package.

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:

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);
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
  }



}

For more info #

@alfatihtalab | Linkedin | Twitter | Stackoverflow

6
likes
130
points
37
downloads

Publisher

verified publisheralfatih.dev

Weekly Downloads

Woocommerce rest api package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, http, logger, meta, retrofit

More

Packages that depend on woo_api