I am developing an Android application for my WooCommerce store and retrieving storage data such as Products, Categories, Orders, Customers, etc. using the GET http verb WooCommerce REST Api . It works fine and I can correctly generate oAuth 1.0 signature for api V2 and V3. Now I want to perform the "Record" action. I found out from the same documentation that I need to use the POST Http verb. I tried the same and stuck.
When I perform any POST action with an HttpGet or HttpPost request using the URL, oAuth data and the generated signature, I get:
{"errors":[{"code":"woocommerce_api_authentication_error","message":"Invalid Signature - provided signature does not match"}]}
I follow all the instructions given in the document and found on Google, also used the "POST" line to generate the oAuth signature, tried to send parameters using HttpGet and HttpPost, but could not.
Can someone please provide me some instruction or example to use the verb POST Http for Android to perform a write action using the WooCommerce REST API. (e.g. Create a new order, Create a new category, etc.)
source share