chatwind.js

Official Node.js wrapper for the Chatwind API

Installing the package

To install the chatwind.js npm package, you have to run the following command:

npm i chatwind.js

Make sure you are updating this package regularly, as we add things regularly. Do this by running "npm outdated", and installing the latest version.

Once you have the package installed, define the package in your code.

const chatwind = require("chatwind.js");

After you finish all of that, feel free to add any of these available functions:

Getting a user's information

chatwind.user("USERNAME").then(result => console.log(result));

Check if a custom meeting code is valid

chatwind.customcode("CODE").then(result => console.log(result));

Get the statistics for Chatwind

chatwind.stats().then(result => console.log(result));

Unmentioned feature

If this package does not have a function for a certain API endpoint, we have a function that lets you easily interact with any endpoint!

chatwind.api("PATH", "METHOD").then(result => console.log(result));

This will return a JSON from the endpoint specified.

Note: "PATH" is the endpoint (e.g users/milanm), and "METHOD" is the HTTP method (e.g POST).