3.0.2 (September 2022)
Changelog:
- Add support for adding
Procore-Company-Idrequest header whendefaultCompanyIdis passed inClientOptions. - Add support for adding
Procore-Company-Idrequest header whencompanyIdis passed inRequestConfig. - Add support for customer headers.
defaultCompanyId example:
// Pass the defaultCompanyId configuration in the ClientOptions
const procore = client(authorizer, undefined, { defaultCompanyId: 1 });
procore.get(
{ base: "/projects" }
);companyId example:
const procore = client(authorizer);
// Pass the companyId configuration in the RequestConfig
procore.get(
{ base: "/projects" },
{ companyId: procoreCompanyId }
);Custom headers example:
const procoreClinet = client(authorizer, {headers: {"Content-Type":"multipart/form-data"}});