minchao / shopee-php

Shopee OpenAPI 1.0 Client for PHP
BSD 3-Clause "New" or "Revised" License
142 stars 84 forks source link

Changed attribute to attributes #8

Closed weikenchoo closed 5 years ago

weikenchoo commented 5 years ago

image

When trying to add a product to Shopee, got this response. Problem solved after changing attribute_id to attributes_id

minchao commented 5 years ago

Thank you. The getAttributeId() also needs to be changed to plural too. ;)

https://github.com/minchao/shopee-php/blob/0bd0d071ebab738ce5fbc597689248f9d0707248/src/Nodes/Item/Parameters/Attribute.php#L11

weikenchoo commented 5 years ago

Thank you. The getAttributeId() also needs to be changed to plural too. ;)

https://github.com/minchao/shopee-php/blob/0bd0d071ebab738ce5fbc597689248f9d0707248/src/Nodes/Item/Parameters/Attribute.php#L11

Done.