Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send PUT and DELETE Requests #15

Open
michael-attal opened this issue Jun 8, 2020 · 1 comment
Open

How to send PUT and DELETE Requests #15

michael-attal opened this issue Jun 8, 2020 · 1 comment

Comments

@michael-attal
Copy link

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

@Nakarmi23
Copy link

Nakarmi23 commented Aug 18, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@michael-attal @Nakarmi23 and others