woocommerce / wc-api-ruby

A Ruby wrapper for the WooCommerce API.
MIT License
69 stars 74 forks source link

Deleting a webhook, ruby doc incorrect? #46

Open kickbk opened 4 years ago

kickbk commented 4 years ago

Really enjoying developing integration with the WC api right now. Very clean coded and documented API.

Not sure why, but the Ruby method you suggest running to delete a webhook will not work unless you add force: true to the call like so:

woocommerce.delete("webhooks/123", {force: true}).parsed_response

This is due to the very clear requirement you added to your delete method.