Retrieve an existing contact
JimmyBeats opened this issue · comments
11 lines of codes to retrieve a contact is rather verbose. Wouldn't it make sense to add shortcut methods so such verbosity can be abstracted away?
# Get existing contact
$response = $hubspot->crm()->contacts()->basicApi()->findContact("john@example.com");
Hi @JimmyBeats .
You can get contact by email in one line of codes.
Example:
$contact = $hubSpot->crm()->contacts()->basicApi()->getById('test@test.com', null, null, null, false, 'email');
The SDK version 10.3.0.