1.1.3 • Published 1 year ago

@xfallseane/intersect.ts v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

IntersectJS

A pleasant Intersect Engine API Client

Description

IntersectTS is a Intersect Engine package built on top of Intersect Engine API to render more easily the API usage.

This package is an upgrade version from "@ariusii Package"

Click here for the documentation and guides(todo)

Features

  • Written in TypeScript
  • Easy to use
  • Completely Modular and Extendable
  • Fully documented
  • Every API endpoint are separated in their own class
  • Full TypeScript & JavaScript support

Installation

@xfallseane/intersect.ts doesn't require any dependencies.

    npm i @xfallseane/intersect.ts

Example usage

    import { initToken, Client } as IntersectAPI from '@ariusii/intersect.ts';
    const url = "http://myserver.com";
    const port = 5400;

    const token = await initToken(url, port, "username", "password");
    /* password : Need to be passed as a UPPERCASE SHA256 of the password */

    const client = new Client(url, port, token.access_token, token.refresh_token);
    /* You can add a fifth parameter to the constructor to set the refresh interval in milliseconds. Default is 840000 ms */

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the documentation.

If you'd like, feel free to submit a PR.

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join the official forum.