NPM package for our internal NetAPI class
- Node.js
- npm (normally included)
- typescript
npm install @nova-studios-ltd/typescript-netapi
import { NetAPI } from "@nova-studios-ltd/typescript-netapi";
NetAPI.Init("https://api.novastudios.uk");
// GET (Applies to all methods) Without headers
await NetAPI.GET<string>("/Channel/my-new-channel");
// GET (Applies to all methods) With headers
await NetAPI.GET<string>("/Channel/my-new-channel-2", new NetHeaders().WithAuthorization("MyPassword"));
Download a zipped version here or clone via HTTPS:
git clone https://github.com/Nova-Studios-Ltd/Typescript-NetAPI-Package.git
This project is currently licensed under a GPLv3 license.