woocommerce_dart icon indicating copy to clipboard operation
woocommerce_dart copied to clipboard

How to send PUT and DELETE Requests

Open michael-attal opened this issue 4 years ago • 1 comments

How can I send PUT and DELETE requests with this package ?

michael-attal avatar Jun 08 '20 15:06 michael-attal

There is not method for put and delete. From what i can think of, is to use Dart's extension methods and following the way he has written the code to create thos methods yourself: getAsync method code: https://pub.dev/documentation/woocommerce_api/latest/woocommerce_api/WooCommerceAPI/getAsync.html link to youtube video for Dart's extension methods: https://www.youtube.com/watch?v=D3j0OSfT9Z

NOTE: I haven't tried it my self. I just came up with this idea while searching for the same thing

Nakarmi23 avatar Aug 18 '20 17:08 Nakarmi23