1.1.3 • Published 4 years ago

chatwind.js v1.1.3

Weekly downloads
22
License
MIT
Repository
github
Last release
4 years ago

chatwind.js

Usage

Add the package

To start, you will need to add the package. To do that, simply run npm i chatwind.js. In your code, add the following:

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

Now you can use any of the functions below! All of the function return a Promise (just an FYI).


Getting a user's information

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

The code above should return a 200 OK message. (JSON)

Check if a custom meeting code is valid

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

The code above should return a 200 OK message. (JSON)

Get the statistics for Chatwind

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

The code above should return a 200 OK message. (JSON)


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

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago