@firesquad/api-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.9.0 • Public • Published

@firesquad/api-sdk

Properly integrate your Nodejs apps with firesquad usign this SDK.

Firesquad

Quick Start

For getting started, Create an API Integration on Firesquad. After that, you can use this firesquad package:

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));

Readme

Keywords

none

Package Sidebar

Install

npm i @firesquad/api-sdk

Weekly Downloads

12

Version

1.9.0

License

MIT

Unpacked Size

207 kB

Total Files

11

Last publish

Collaborators

  • wzalazar
  • jlcasella
  • zalazarnatanael
  • negan1911