open-index/open-npm huggingface dataset:
npm package: @firesquad/api-sdk
Description: Properly integrate your Nodejs apps with firesquad usign this SDK.
Author: Nahuel Veron
Latest version: 1.9.0

# @firesquad/api-sdk

Properly integrate your Nodejs apps with firesquad usign this SDK.

- [Firesquad API Knowledge Base](https://help.firesquad.io/category/627e6c7f1089aa742a648461/articles)
- [API Docs](https://firesquadio.github.io/nodejs-api-sdk/classes/Firesquad.html)

<p align="center">
  <img alt="Firesquad" src="https://app.firesquad.io/public/firesquad-logo-background.png">
</p>

### Quick Start

For getting started, Create an API Integration on [Firesquad](https://app.firesquad.io/settings/integrations/new).
After that, you can use this firesquad package:

```ts
import { Firesquad, ConversationContentMessageType } from "@firesquad/api-sdk";

export const fs = new Firesquad(
  "https://<your-account>.api.firesquad.io",
  "<your-api-id>",
  "<your-api-key>"
);

/* You can use firesquad methods after creating the instance, such as: */
fs.PostConversationItem(
  {
    internal: false,
    content: {
      message: [
        {
          type: ConversationContentMessageType.Paragraph,
          children: [{ text: "Hello, World!" }],
        },
      ],
    },
  },
  "<your-conversation-id>"
)
  /* And wait for the response */
  .then((response) => console.log(response));
```
npm package: @firesquad/widget
Description: Firesquad Web Widget
Author: Nahuel Veron
Latest version: 3.0.0

<p align="center">
  <img alt="Firesquad" src="https://app.firesquad.io/public/firesquad-logo-background.png">
</p>

<p align="center">Firesquad Widget</p>

## Guide

- [Install](#install)
  - [React](#react)
  - [Html](#html)

## Install

```bash
npm i @firesquad/widget --save
yarn add @firesquad/widget
```

#### React

on your index file:

```javascript
import React, { useEffect } from 'react'
import Firesquad from '@firesquad/widget'
const appId = 'xxx' // Get your appId https://app.firesquad.io
const App = () => {
  useEffect(() => {
    Firesquad(appId)
  }, [])
}
```

#### Html

- Add the script with your key (replace `xxxx` with your key) 

```html
<script src="https://unpkg.com/@firesquad/widget@latest/dist/index.js?key=xxxx"></script>
```

Example:

```html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
  <script src="https://unpkg.com/@firesquad/widget@latest/dist/index.js?key=xxxx"></script>
</body>
</html>
```

[@firesquad 2021](https://app.firesquad.io)