# get-all-hubspot-companies

## Gettin started

1. Install the package

```
npm i get-all-hubspot-companies
```

2. How to use it in your file (ex: paste it in an index.js file and then run node index.js):

```
const { getAllHubspotCompanies } = require('get-all-hubspot-companies');

const asyncFunction = async () => {
  const hubspotCompanies = await getAllHubspotCompanies(apiKey);

  // or

  const hubspotCompanies = await getAllHubspotCompanies(apiKey, ['name', 'id']);
};

asyncFunction();
```

3. Additional information:

- You can provide an array of strings with the company's properties you wish to have in the response from Hubspot. Otherwise default properties will be returned.

## Built with

- [Node.js](https://nodejs.org/en)
- [Axios](https://axios-http.com/docs/intro)

## Company

IP Pilot:

- [Website](https://www.ip-pilot.com/en/)
- [e-mail](info@ip-pilot.com)
