Skip to content

3.0.2 (September 2022)

Choose a tag to compare

@gilmcquillan gilmcquillan released this 03 Oct 22:30
07d099e

Changelog:

  • Add support for adding Procore-Company-Id request header when defaultCompanyId is passed in ClientOptions.
  • Add support for adding Procore-Company-Id request header when companyId is passed in RequestConfig.
  • 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"}});

#58