# Installing the NPM package

## Requirements <a href="#requirements" id="requirements"></a>

To use our Public Chat SDK npm package, an Access Token will be needed. Access Token is available in [Private area](https://media.sceenic.co/). If you don't have access to the private area, please contact us at <Support@sceenic.co>.

## What is the Access Token? Why do you need it? <a href="#what-is-the-access-token-why-do-you-need-it" id="what-is-the-access-token-why-do-you-need-it"></a>

Public Chat SDK is a private package that is hosted on the npm registry. Only authorized users can access it. When you receive access to the SDK we will generate an authentication token for you. An authentication token is a hexadecimal string that gives you access to SDK.

## Before installation <a href="#before-installation" id="before-installation"></a>

In your project root folder create a *.npmrc* file. This file will set the specific npm config values for this project. Insert the code snippet below to the .npmrc file. Replace `YOUR_ACCESS_TOKEN` with the token that was provided.

```typescript
//registry.npmjs.org/:_authToken=YOUR_ACCESS_TOKEN
```

## Installation <a href="#installation" id="installation"></a>

```typescript
npm i @sscale/pchatsdk
```

## Documentation <a href="#documentation" id="documentation"></a>

* [API References](https://public-chat-api-doc.web.app/)

## Usage <a href="#usage" id="usage"></a>

```typescript
import { PChatSDK } from '@sscale/pchatsdk';
```
