rhysnhall / etsy-php-sdk

PHP SDK for Etsy API v3.
MIT License
47 stars 36 forks source link

ListingProperty->update() has no effect #14

Closed quape closed 2 years ago

quape commented 2 years ago

This API is awesome, I'm using it to implement all v3 stuff. Everything works so far except updating listing properties.

Since $listing->getListingProperty() is not working yet I'm using $listing->getListingProperties() to return all properties and for one specific I do this:

$prop->update(array(
  "value_ids" => array(743),
  "values" => array('Sewing'),
  "scale_id" => 10 // meters
));

Thats returns the old data and also has no effect on the properties. Any ideas?

rhysnhall commented 2 years ago

I'll test this out and come back to you.

rhysnhall commented 2 years ago

Okay, the endpoint for updating properties has changed. I have been slack in keeping up with updates, as I have a newer version of this SDK to release. I'll review all endpoints for changes and push an update to the current version tonight that will fix this. Also, I still can't believe they have not released the endpoint for the getListingProperty yet.

rhysnhall commented 2 years ago

The #latest version resolves this.

quape commented 2 years ago

It now works like a charm, man! Thanks!