open-index/open-npm huggingface dataset:
npm package: @particles/table-config
Description: Manages column definition arrays to configure columns.
Author: Procore
Latest version: 3.0.0
Deprecated: DEPRECATED 10-2017! @particles/table-config is now a component exported by @particles/table.

# Table Config

Manages column definition arrays to configure columns.

# Change Log

### 3.0.0
- Removed padding top from `.container`
- Fixed bug where locked items could be deselected

##### 2.6.1
- Style scoping fix

##### 2.6.0
- Analytics added

##### 2.5.2
- Webpack dev server upgrade

##### 2.5.1
- Fixed default style to fix bug where the component was rendered outside of the table

##### 2.5.0
- Adding `i18n` support
- Removing blur listener on unmount

##### 2.4.4
- Adding in a diff so that new columns are always shown if they are passed in via defaults but aren't already in the saved configs

##### 2.4.3
- Fixing `name` in `package.json`
- Removing HTTP PATCH call on `componentWillMount()`

##### 2.4.2
- Sandbox cleanup

##### 2.4.1
- Updated the ellipses button to a custom `.svg`

##### 2.4.0
- Added row height control

##### 2.3.1
- Fixed IE bug that allowed disabled checkboxes to fire `onChange` on a double click

##### 2.3.0
- Added `hideable` to column definitions and support for it within component

##### 2.2.5
- Updating package.json to Particles URL

##### 2.2.4
- Changed styling to generic colors

##### 2.2.3
- Select all control bug fix

##### 2.2.2
- Added isSelectAll prop to turn it on/off
- Prevent dropdown from closing when clicking in dropdownHead

##### 2.2.1
- Triangle style fixes

##### 2.2.0
- Select all control added

##### 2.1.0
- Triangle added to top

### 2.0.0
- Default columns added as a required prop

##### 1.1.3
- onChange called without using state options

##### 1.1.2
- Adding drag handle, removing drop shadow
- Removing reset.scss

##### 1.1.1
- Sans serif star selector solve
- Improving collapse/expand animation

##### 1.1.0
- Changing ID attribute from "name" to "key"
- Fixing IE data transfer bug
- Adding min-width to dropdown body

##### 1.0.1, 1.0.2, 1.0.3
- Publish

### 1.0.0
- Initial commit
npm package: @particles/toast-alert
Description: Displays a temporary Toast notification
Author: Procore
Latest version: 0.8.0

# Toastalert

Displays a temporary Toast notification

# Change Log

### 0.8.0
- Multiple toasts!
- Fancy animations!
- No more activeStateDecorator

### 0.7.0
- Center Toast
- Fix z-index issue with Minimize Sidebar button
- Pull onTimeout out of setState callback. Call it immediately after.

### 0.4.0
- Using nextProps.onTimeout

### 0.2.0
- Added a hack to prevent the message from being cut off
- Refactored
- Added propTypes

### 0.1.0
- Initial commit
npm package: @particular-labs/testgum
Description: [![CI](https://github.com/particular-labs/testgum/actions/workflows/main.yml/badge.svg)](https://github.com/particular-labs/testgum/actions/workflows/main.yml) [![Publish to Package Registry](https://github.com/particular-labs/testgum/actions/workflows/pu
Latest version: 0.1.13

# testgum

[![CI](https://github.com/particular-labs/testgum/actions/workflows/main.yml/badge.svg)](https://github.com/particular-labs/testgum/actions/workflows/main.yml)
[![Publish to Package Registry](https://github.com/particular-labs/testgum/actions/workflows/publish.yml/badge.svg)](https://github.com/particular-labs/testgum/actions/workflows/publish.yml)
npm package: @particular./micro-requestbin
Description: Please contact Particular. via info@uniquelyparticular.com for any questions
Author: Adam Grohs
Latest version: 1.0.0

# @particular./micro-requestbin

[![npm version](https://img.shields.io/npm/v/@particular./micro-requestbin.svg)](https://www.npmjs.com/package/@particular./micro-requestbin) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://img.shields.io/circleci/project/github/uniquelyparticular/micro-requestbin.svg?label=circleci)](https://circleci.com/gh/uniquelyparticular/micro-requestbin) ![dependency status: david](https://img.shields.io/david/uniquelyparticular/micro-requestbin.svg)

> RequestBin implementation to log output of incoming requests

Built with [Micro](https://github.com/zeit/micro)! 🤩

## 🛠 Setup

Create a `.env` at the project root with the following credentials:

```dosini
REQUESTBIN_ORIGIN_WHITELIST=*.mysite.com,*.mycrmplaform.io,*.mycommerceplaform.com,*.now.sh
```

`REQUESTBIN_ORIGIN_WHITELIST` is a comma separated list of patterns to match against the incoming requests 'Origin' header (ex. `localhost,*.myawesomesite.com,*.now.sh`)

_Optional Additional Parameters_

```dosini
REQUESTBIN_SECRET_HEADER=x-webhook-secret-key
REQUESTBIN_SECRET_VALUE=zxasda
```

`REQUESTBIN_SECRET_HEADER` will default to `'x-webhook-secret-key'` and is if a header is found that matches it to verify that the value sent matches anything you've specified as `REQUESTBIN_SECRET_VALUE`

## 📦 Package

Run the following command to build the app

```bash
yarn install
```

Start the development server

```bash
yarn dev
```

The server will typically start on PORT `3000`, if not, make a note for the next step.

Start ngrok (change ngrok port below from 3000 if yarn dev deployed locally on different port above)

```bash
ngrok http 3000
```

Make a note of the https `ngrok URL` provided.

## 🚀 Deploy

You can easily deploy this function to [now](https://now.sh).

_Contact [Adam Grohs](https://www.linkedin.com/in/adamgrohs/) @ [Particular.](https://uniquelyparticular.com) for any questions._
npm package: @particular./stripe-distinct-usage-tracking
Description: Please contact Particular. via info@uniquelyparticular.com for any questions
Author: Adam Grohs
Latest version: 1.6.2
Deprecated: no longer maintained/working

# @particular./stripe-distinct-usage-tracking

[![npm version](https://img.shields.io/npm/v/@particular./stripe-distinct-usage-tracking.svg)](https://www.npmjs.com/package/@particular./stripe-distinct-usage-tracking) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://img.shields.io/circleci/project/github/uniquelyparticular/stripe-distinct-usage-tracking.svg?label=circleci)](https://circleci.com/gh/uniquelyparticular/stripe-distinct-usage-tracking) ![dependency status: david](https://img.shields.io/david/uniquelyparticular/stripe-distinct-usage-tracking.svg)

> [Stripe](https://stripe.com) Metered Pricing unique usage tracking implementation to increment Subscriptions Usage Record only for distinct new entities

Built with [Micro](https://github.com/zeit/micro)! 🤩

## 🛠 Setup

Create a `.env` at the project root with the following credentials:

```dosini
USAGETRACKING_ORIGIN_WHITELIST=*.mysite.com,*.mycrmplaform.io,*.mycommerceplaform.com,*.now.sh
USAGETRACKING_SECRET_HEADER=x-webhook-secret-key
USAGETRACKING_SECRET_KEY=zxasda
STRIPE_SECRET_KEY=sk12312312312312312
```

`USAGETRACKING_ORIGIN_WHITELIST` is a comma separated list of patterns to match against the incoming requests 'Origin' header (ex. `localhost,*.myawesomesite.com,*.now.sh`)

`USAGETRACKING_SECRET_HEADER` will default to `'x-shared-secret'` and will be used to look for a header value to use for decryption.

`USAGETRACKING_SECRET_VALUE` will be used for decryption in conjunction w/ the value send in the `USAGETRACKING_SECRET_HEADER` header's value.

Find your `STRIPE_SECRET_KEY` within Stripe's [API Settings](https://dashboard.stripe.com/account/apikeys).

## 📦 Package

Run the following command to build the app

```bash
yarn install
```

Start the development server

```bash
yarn dev
```

The server will typically start on PORT `3000`, if not, make a note for the next step.

Start ngrok (change ngrok port below from 3000 if yarn dev deployed locally on different port above)

```bash
ngrok http 3000
```

Make a note of the https `ngrok URL` provided.

## 🚀 Deploy

You can easily deploy this function to [now](https://now.sh).

_Contact [Adam Grohs](https://www.linkedin.com/in/adamgrohs/) @ [Particular.](https://uniquelyparticular.com) for any questions._
npm package: @particular./sync-shipengine-to-moltin
Description: Please contact Particular. via info@uniquelyparticular.com for any questions
Author: Adam Grohs
Latest version: 1.1.3

# @particular./sync-shipengine-to-moltin

[![npm version](https://img.shields.io/npm/v/@particular./sync-shipengine-to-moltin.svg)](https://www.npmjs.com/package/@particular./sync-shipengine-to-moltin) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://img.shields.io/circleci/project/github/uniquelyparticular/sync-shipengine-to-moltin.svg?label=circleci)](https://circleci.com/gh/uniquelyparticular/sync-shipengine-to-moltin)

> Update Moltin order shipping status when delivered in ShipEngine

Asynchronous microservice that is triggered by [ShipEngine](https://www.shipengine.com) webhooks to update Order data inside of [moltin](https://moltin.com).

Built with [Micro](https://github.com/zeit/micro)! 🤩

## 🛠 Setup

Both a [moltin](https://moltin.com) _and_ [ShipEngine](https://www.shipengine.com) account are needed for this to function.

Create a `.env` at the project root with the following credentials:

```dosini
MOLTIN_CLIENT_ID=
MOLTIN_CLIENT_SECRET=
```

Find your `MOLTIN_CLIENT_ID` and `MOLTIN_CLIENT_SECRET` inside of your [moltin Dashboard](https://dashboard.moltin.com)'s API keys.

## 📦 Package

Run the following command to build the app

```bash
yarn install
```

Start the development server

```bash
yarn dev
```

The server will typically start on PORT `3000`, if not, make a note for the next step.

Start ngrok (change ngrok port below from 3000 if yarn dev deployed locally on different port above)

```bash
ngrok http 3000
```

Make a note of the https `ngrok URL` provided.

## ⛽️ Usage

Next head over to the ShipEngine [API Management>Webhooks](https://app.shipengine.com/#/portal/apimanagement) area, add a new webhook with the following details:

| Events             | Webhook URL         | Status |
| ------------------ | ------------------- | ------ |
| Any tracking event | `ngrok URL` above\_ | On     |

## 🚀 Deploy

You can easily deploy this function to [now](https://now.sh).

_Contact [Adam Grohs](https://www.linkedin.com/in/adamgrohs/) @ [Particular.](https://uniquelyparticular.com) for any questions._
npm package: @particular./sync-shipengine-to-zendesk
Description: Please contact Particular. via info@uniquelyparticular.com for any questions
Author: Adam Grohs
Latest version: 1.1.3

# @particular./sync-shipengine-to-zendesk

[![npm version](https://img.shields.io/npm/v/@particular./sync-shipengine-to-zendesk.svg)](https://www.npmjs.com/package/@particular./sync-shipengine-to-zendesk) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://img.shields.io/circleci/project/github/uniquelyparticular/sync-shipengine-to-zendesk.svg?label=circleci)](https://circleci.com/gh/uniquelyparticular/sync-shipengine-to-zendesk)

> Add a Zendesk Sunshine Event whenever a Shipping Status change is triggered in ShipEngine

Asynchronous microservice that is triggered by [ShipEngine](https://www.shipengine.com/) webhooks to create a Sunshine Event inside of [Zendesk](https://zendesk.com).

Built with [Micro](https://github.com/zeit/micro)! 🤩

## 🛠 Setup

Both a [Zendesk](https://zendesk.com) _and_ [ShipEngine](https://www.shipengine.com/) account are needed for this to function.

Create a `.env` at the project root with the following credentials:

```dosini
ZENDESK_SUBDOMAIN=
ZENDESK_INTEGRATION_EMAIL=
ZENDESK_INTEGRATION_SECRET=
```

`ZENDESK_SUBDOMAIN` is the first part of the URL for your Zendesk account (ie. https://{ZENDESK_SUBDOMAIN}.zendesk.com/).

While logged in to your Zendesk instance create a new User to run the Webhooks under by going to `Settings` > `People` > `Add User` > `Role: Staff`; this email address will be used as your `ZENDESK_INTEGRATION_EMAIL` above.

Find your `ZENDESK_INTEGRATION_SECRET` within your Zendesk instance by going to `Settings` > `API` > enable `Token Access` > add `Active API Tokens [+]` > `API Token`.

## 📦 Package

Run the following command to build the app

```bash
yarn install
```

Start the development server

```bash
yarn dev
```

The server will typically start on PORT `3000`, if not, make a note for the next step.

Start ngrok (change ngrok port below from 3000 if yarn dev deployed locally on different port above)

```bash
ngrok http 3000
```

Make a note of the https `ngrok URL` provided.

## ⛽️ Usage

Next head over to the ShipEngine [API Management>Webhooks](https://app.shipengine.com/#/portal/apimanagement) area, add a new webhook with the following details:

| Events             | Webhook URL         | Status |
| ------------------ | ------------------- | ------ |
| Any tracking event | `ngrok URL` above\_ | On     |

## 🚀 Deploy

You can easily deploy this function to [now](https://now.sh).

_Contact [Adam Grohs](https://www.linkedin.com/in/adamgrohs/) @ [Particular.](https://uniquelyparticular.com) for any questions._
npm package: @particular./sync-shippo-to-moltin
Description: Please contact Particular. via info@uniquelyparticular.com for any questions
Author: Adam Grohs
Latest version: 1.1.4

# @particular./sync-shippo-to-moltin

[![npm version](https://img.shields.io/npm/v/@particular./sync-shippo-to-moltin.svg)](https://www.npmjs.com/package/@particular./sync-shippo-to-moltin) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://img.shields.io/circleci/project/github/uniquelyparticular/sync-shippo-to-moltin.svg?label=circleci)](https://circleci.com/gh/uniquelyparticular/sync-shippo-to-moltin)
![dependency status: david](https://img.shields.io/david/uniquelyparticular/sync-shippo-to-moltin.svg)

> Update Moltin order shipping status when delivered in Shippo

Asynchronous microservice that is triggered by [Shippo](https://goshippo.com) webhooks to update Order data inside of [moltin](https://moltin.com).

Built with [Micro](https://github.com/zeit/micro)! 🤩

## 🛠 Setup

Both a [moltin](https://moltin.com) _and_ [Shippo](https://goshippo.com) account are needed for this to function.

Create a `.env` at the project root with the following credentials:

```dosini
MOLTIN_CLIENT_ID=
MOLTIN_CLIENT_SECRET=
```

Find your `MOLTIN_CLIENT_ID` and `MOLTIN_CLIENT_SECRET` inside of your [moltin Dashboard](https://dashboard.moltin.com)'s API keys.

## 📦 Package

Run the following command to build the app

```bash
yarn install
```

Start the development server

```bash
yarn dev
```

The server will typically start on PORT `3000`, if not, make a note for the next step.

Start ngrok (change ngrok port below from 3000 if yarn dev deployed locally on different port above)

```bash
ngrok http 3000
```

Make a note of the https `ngrok URL` provided.

## ⛽️ Usage

Next head over to the Shippo [API Settings](https://app.goshippo.com/settings/api) area, add a new webhook with the following details:

| Event Type    | Mode   | URL                 |
| ------------- | ------ | ------------------- |
| Track Updated | `Test` | _`ngrok URL` above_ |

## 🚀 Deploy

You can easily deploy this function to [now](https://now.sh).

_Contact [Adam Grohs](https://www.linkedin.com/in/adamgrohs/) @ [Particular.](https://uniquelyparticular.com) for any questions._
npm package: @particular./sync-shippo-to-zendesk
Description: Please contact Particular. via info@uniquelyparticular.com for any questions
Author: Adam Grohs
Latest version: 1.1.3

# @particular./sync-shippo-to-zendesk

[![npm version](https://img.shields.io/npm/v/@particular./sync-shippo-to-zendesk.svg)](https://www.npmjs.com/package/@particular./sync-shippo-to-zendesk) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://img.shields.io/circleci/project/github/uniquelyparticular/sync-shippo-to-zendesk.svg?label=circleci)](https://circleci.com/gh/uniquelyparticular/sync-shippo-to-zendesk)

> Add a Zendesk Sunshine Event whenever a Shipping Status change is triggered in Shippo

Asynchronous microservice that is triggered by [Shippo](https://goshippo.com) webhooks to create a Sunshine Event inside of [Zendesk](https://zendesk.com).

Built with [Micro](https://github.com/zeit/micro)! 🤩

## 🛠 Setup

Both a [Zendesk](https://zendesk.com) _and_ [Shippo](https://goshippo.com) account are needed for this to function.

Create a `.env` at the project root with the following credentials:

```dosini
ZENDESK_SUBDOMAIN=
ZENDESK_INTEGRATION_EMAIL=
ZENDESK_INTEGRATION_SECRET=
```

`ZENDESK_SUBDOMAIN` is the first part of the URL for your Zendesk account (ie. https://{ZENDESK_SUBDOMAIN}.zendesk.com/).

While logged in to your Zendesk instance create a new User to run the Webhooks under by going to `Settings` > `People` > `Add User` > `Role: Staff`; this email address will be used as your `ZENDESK_INTEGRATION_EMAIL` above.

Find your `ZENDESK_INTEGRATION_SECRET` within your Zendesk instance by going to `Settings` > `API` > enable `Token Access` > add `Active API Tokens [+]` > `API Token`.

## 📦 Package

Run the following command to build the app

```bash
yarn install
```

Start the development server

```bash
yarn dev
```

The server will typically start on PORT `3000`, if not, make a note for the next step.

Start ngrok (change ngrok port below from 3000 if yarn dev deployed locally on different port above)

```bash
ngrok http 3000
```

Make a note of the https `ngrok URL` provided.

## ⛽️ Usage

Next head over to the Shippo [API Settings](https://app.goshippo.com/settings/api) area, add a new webhook with the following details:

| Event Type    | Mode   | URL                 |
| ------------- | ------ | ------------------- |
| Track Updated | `Test` | _`ngrok URL` above_ |

## 🚀 Deploy

You can easily deploy this function to [now](https://now.sh).

_Contact [Adam Grohs](https://www.linkedin.com/in/adamgrohs/) @ [Particular.](https://uniquelyparticular.com) for any questions._
npm package: @particular./sync-stripe-to-moltin
Description: Please contact Particular. via info@uniquelyparticular.com for any questions
Author: Adam Grohs
Latest version: 1.1.4

# @particular./sync-stripe-to-moltin

[![npm version](https://img.shields.io/npm/v/@particular./sync-stripe-to-moltin.svg)](https://www.npmjs.com/package/@particular./sync-stripe-to-moltin) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://img.shields.io/circleci/project/github/uniquelyparticular/sync-stripe-to-moltin.svg?label=circleci)](https://circleci.com/gh/uniquelyparticular/sync-stripe-to-moltin)

> Update Moltin order payment status when refunded in Stripe

Asynchronous microservice that is triggered by [Stripe](https://stripe.com) webhooks to update Order data inside of [moltin](https://moltin.com).

Built with [Micro](https://github.com/zeit/micro)! 🤩

## 🛠 Setup

Both a [moltin](https://moltin.com) _and_ [Stripe](https://stripe.com) account are needed for this to function.

Create a `.env` at the project root with the following credentials:

```dosini
MOLTIN_CLIENT_ID=
MOLTIN_CLIENT_SECRET=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
```

Find your `MOLTIN_CLIENT_ID` and `MOLTIN_CLIENT_SECRET` inside of your [moltin Dashboard](https://dashboard.moltin.com)'s API keys.

Find your `STRIPE_WEBHOOK_SECRET` inside of your deployed endpoint within Stripe's [Webhook Settings](https://dashboard.stripe.com/account/webhooks) area.

Find your `STRIPE_SECRET_KEY` within Stripe's [API Settings](https://dashboard.stripe.com/account/apikeys).

## 📦 Package

Run the following command to build the app

```bash
yarn install
```

Start the development server

```bash
yarn dev
```

The server will typically start on PORT `3000`, if not, make a note for the next step.

Start ngrok (change ngrok port below from 3000 if yarn dev deployed locally on different port above)

```bash
ngrok http 3000
```

Make a note of the https `ngrok URL` provided.

## ⛽️ Usage

Next head over to the Stripe [Webhook Settings](https://dashboard.stripe.com/account/webhooks) area, add a new webhook with the following details:

| URL to be called    | Webhook version        | Filter event                               |
| ------------------- | ---------------------- | ------------------------------------------ |
| _`ngrok URL` above_ | `2018-05-21 (Default)` | 'Select types to send' > `charge.refunded` |

⚠️ Each time a `charge` is `refunded` this function will be called, but it will only call moltin to update order if 'fully refunded' in Stripe (TODO: if Moltin add support for order.payment = partial_refund then can update to handle).

## 🚀 Deploy

You can easily deploy this function to [now](https://now.sh).

_Contact [Adam Grohs](https://www.linkedin.com/in/adamgrohs/) @ [Particular.](https://uniquelyparticular.com) for any questions._
npm package: @particular./zendesk-magento-m1-request
Description: Please contact Particular. via info@uniquelyparticular.com for any questions
Author: Adam Grohs
Latest version: 1.1.1

# @particular./zendesk-magento-m1-request

[![npm version](https://img.shields.io/npm/v/@particular./zendesk-magento-m1-request.svg)](https://www.npmjs.com/package/@particular./zendesk-magento-m1-request) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![CircleCI](https://img.shields.io/circleci/project/github/uniquelyparticular/zendesk-magento-m1-request.svg?label=circleci)](https://circleci.com/gh/uniquelyparticular/zendesk-magento-m1-request)
![dependency status: david](https://img.shields.io/david/uniquelyparticular/zendesk-magento-m1-request.svg)

> 🎮 Minimal [Magento m1](https://devdocs.magento.com/guides/m1x/install/installing_install.html) API request library for Node (design for use w/ [Zendesk Extension](https://github.com/zendesk/magento_extension))

## Installation

```bash
yarn add @particular./zendesk-magento-m1-request # npm install @particular./zendesk-magento-m1-request
```

## Quickstart (OAuth)

```js
const { createClient } = require('@particular./zendesk-magento-m1-request');
// import { createClient } from '@particular./zendesk-magento-m1-request'

const magentoM1 = new createClient({
  store_url: 'https://.../...', //Magento m1 Store URL
  access_token: '...' //Access token generated after installing/configuring Zendesk extension
});

magentoM1
  .get(`zendesk/api/customers/${email}`)
  .then(console.log)
  .catch(console.error);
```

## Custom headers per request

The API provides you the ability to send various request headers that change the way data is stored or retrieved.

By default this library will encode all data as JSON, however you can customise this by setting your own `Content-Type` header as an additional argument to `get`, `patch`, `post`, `put` and `delete`.

**Note**: If you add the `Content-Type` custom header to `patch`, `post`, `put` or `delete` you will need to encode `data` yourself.

```js
const magentoM1 = new createClient({
  store_url: 'https://.../...', //Magento m1 Store URL
  access_token: '...' //Access token generated after installing/configuring Zendesk extension
});

const headers = {
  'X-My-Header': 'custom'
};

magentoM1
  .get(`zendesk/api/customers/${email}`, headers)
  .then(console.log)
  .catch(console.error);
```

_Contact [Adam Grohs](https://www.linkedin.com/in/adamgrohs/) @ [Particular.](https://uniquelyparticular.com) for any questions._