Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Hubspot.companies.getByDomain requires the body #270

Open
estrepan opened this issue Apr 9, 2020 · 0 comments
Open

Hubspot.companies.getByDomain requires the body #270

estrepan opened this issue Apr 9, 2020 · 0 comments

Comments

@estrepan
Copy link

estrepan commented Apr 9, 2020

Method getByDomain in Company class declaration doesn't has second argument like opts: {}.

There is an error from Hubspot because requestOptions body parameter is missing.
Therefore, should be provided something like this (as in your tests):

const payload = { limit: 2, requestOptions: { properties: ['domain', 'createdate', 'name', 'hs_lastmodifieddate'], }, offset: { isPrimary: true, companyId: 0, }, }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant