rhysnhall / etsy-php-sdk

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

Problem with 'PATCH' method #26

Closed abubakrelzoghby closed 3 months ago

abubakrelzoghby commented 1 year ago

The new updateListing API "https://developers.etsy.com/documentation/reference/#operation/updateListing" The method should be 'PATCH'.

But when I tried to run $listing->update() it doesn't work, the request succeeded but the data didn't change.

I found in the client file 'OAuth/Client.php' In the __call method In line 109 'patch' method doesn't exist in the in_array check.

I added 'patch' method in the array and it works fine.

Thanks.

ELY3M commented 11 months ago

you need to do pull request.

rhysnhall commented 3 months ago

Apologies on the delayed response. An updated version of the package is available that addresses this.