Closed whiterook6 closed 1 year ago
Hi @whiterook6 . What version of the SDK do you use? On my local machine it works correctly (the SDK version 5.0.1).
$client = Factory::createWithOAuth2Token('*');
$formatted_properties = [
[
'property' => 'company',
'value' => 'g'
],
[
'property' => 'slack_channel',
'value' => 'f'
],
[
'property' => 'new_customer_report_url',
'value' => 'h'
],
];
$client->contacts()->createOrUpdate(
'test.legacy@exapmle.com',
$formatted_properties
);
We need to create or update a user in our codebase and we use the old Hubspot PHP API, though we use a private app for authentication.
The code we're running is this:
We get this error when submitting the API call:
When printing the contents of $formatted_properties, we get this:
Any ideas? It seems like it's not sending a POST body correctly, but I can't figure out why.