Maybe this library is a little too old, but I was looking for one exactly like this. Sadly it does not have support for variations. I tried creating the method to create a variation, adding the following code to the /lib/woocommerce-api/resources/class-wc-api-client-resource-products.php
Maybe this library is a little too old, but I was looking for one exactly like this. Sadly it does not have support for variations. I tried creating the method to create a variation, adding the following code to the /lib/woocommerce-api/resources/class-wc-api-client-resource-products.php
I made sure the product with ID $id exists, but I keep getting a message about the URL is not working, the localhost URL is:
POST: http://localhost/wordpress/wc-api/v2/products/$id/variations