-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Docs & generic "doRequest" exposed for custom queries
- Loading branch information
Showing
5 changed files
with
143 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,43 @@ | ||
# nodejs-api-sdk | ||
Firesquad Node SDK | ||
# @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> | ||
</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)); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters