Multiple properties for a ContactList not possible in PHP?
njt1982 opened this issue · comments
According to what I've seen with the support forums/FAQ (the documentation is not clear on this), multiple properties should be achieved by repeating the property querystring key. For example:
https://api.hubapi.com/contacts/v1/lists/all/contacts/all?property=x&property=y
How is this possible in PHP when the parameters are a keyed array and you can only set one key once?
hubspot-php/src/Resources/ContactLists.php
Lines 152 to 173 in 0c191a1
(ie, once $params['property'] = 'x'
is set, if I then to $params['property'] = 'y'it will overwrite
'x'`).
Ah!! you can just set property to be an array! 🤦🏻♂️
$contactList->contacts(1, ['property' => ['x', 'y']]);
False alarm
(although https://legacydocs.hubspot.com/docs/methods/lists/get_list_contacts should be update to reflect this)