I am trying to get a product detail from WordPress woo-commerce store. For that i am using nodejs woo-commerce module
But when i make a request i get the following error from server
{"status":"FAIL","message":"Invalid Signature - provided signature does not match"}
and 401 Unauthorized
But when i tried the same thing with php WooCommerce-REST-API-Client-Library which is using curl, i got the desired result.
I have searched different things, even compared the headers and url parameters etc, for both php and nodejs reqeust.
I have also tried this with nodejs curlrequest module.
Can anybody please guide me in the right direction.
I am passing the following options to node module:
{
url:'my-woocommerce.com',
port:'81',
consumerKey:'ck_402b945d4b8a5017bb507df68295e833',
secret:'cs_5ac59207f8cb8c444ca4c4336ccc84e1'
}