helpscout / helpscout-api-php

PHP Wrapper for the Help Scout API
MIT License
98 stars 62 forks source link

Hydrate CustomerProperties on Customer object. #266

Closed andryska closed 3 years ago

bkuhl commented 3 years ago

Thanks for opening this pull request! I went ahead and verified it works as expected by using this code...

// GET customers
$customer = $client->customers()->get(418048101);
var_dump($customer->getProperties());

... and it produces...

Screen Shot 2021-04-07 at 1 02 30 PM

I also added some tests, README docs and other minor tweaks. @miguelrs since I've contributed to this PR, would you mind reviewing this?