-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
the following code seem to have stopped working. it seems a support for a formatting the lib is doing stopped working?
import { Client } from '@hubspot/api-client';
const accessToken = '...';
const email = 'email@company.org';
const client = new Client({ accessToken });
const contact = await client.crm.contacts.basicApi
.getById(
email,
['phone'],
undefined,
undefined,
undefined,
'email',
);this results in the error:
{
"status": "error",
"message": "Object not found. objectId are usually numeric.",
"correlationId": "...",
"context": {
"id": [
"email%40company.org?properties=phone&idProperty=email"
]
},
"category": "OBJECT_NOT_FOUND"
}doing the same in postman (without the %40 formatting of the @ that the api-client seems to be doing), it does work and results in a 200 response with the contact's data
sinorrman, LuizMoratelli and llfaria
Metadata
Metadata
Assignees
Labels
No labels