An open API service indexing awesome lists of open source software.

https://github.com/smartsupp/smartsupp-sdk-widget


https://github.com/smartsupp/smartsupp-sdk-widget

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Smartsupp Widget SDK

## Installation

```bash
npm install smartsupp-widget --save
```

## Usage

Initialize script with your `KEY` and options. For more information about options visit [Docs](https://docs.smartsupp.com/chat-box/configuration/)

```typescript
import * as smartsupp from 'smartsupp-widget'
smartsupp.init('YOUR_KEY', {
hideWidget: true,
})
```

After `init`, you can use api, eg:

```typescript
smartsupp.setName('John Doe')
```

For more info visit https://docs.smartsupp.com