etsy-php-sdk icon indicating copy to clipboard operation
etsy-php-sdk copied to clipboard

Problem with 'PATCH' method

Open abubakrelzoghby opened this issue 1 year ago • 1 comments

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.

abubakrelzoghby avatar Oct 21 '23 13:10 abubakrelzoghby

you need to do pull request.

ELY3M avatar Nov 15 '23 16:11 ELY3M

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

rhysnhall avatar Jul 13 '24 06:07 rhysnhall