wc-api-php
wc-api-php copied to clipboard
Error: Missing OAuth parameter oauth_consumer_key [woocommerce_rest_authentication_missing_parameter]
Im using Lavel 8.3 and "automattic/woocommerce": "^3.0",
If I fetch order from a specific error I get this error Error: Missing OAuth parameter oauth_consumer_key
Here is my code return response()->json($woocommerce->get('orders?customer=6')); Am I doing it wrong?
I'm lost in the same issue too but as I found out it has something to do with the request URL being https or not. If yours is just http you are in the same boat as me. But there's a solution; it doesn't throw an error when you auth via OAuth 1.0 manually. But for some reason, the library doesn't do that. May be using OAuth 2.0. If you found anything helpful pls let me know.
Same problem for me too. I am also getting same error for specific "orders/?customer=xx". I am getting response in postman, but in my code, some specific ids are showing this error.