0.0.0 • Published 2 years ago

zeus-ionis-api v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

zeus-ionis-api

⚡ TypeScript wrapper for the Zeus IONIS API.

Installing

Using NPM:

$ npm i zeus-ionis-api

Usage

Instantiate a Zeus object with a valid access token.

import { Zeus, types } from 'zeus-ionis-api';

const zeus = new Zeus('ACCESS_TOKEN');

(Note that the types of the API are available as an import as shown above.)

import { Zeus } from 'zeus-ionis-api';

const zeus = new Zeus('ACCESS_TOKEN');

// /api/course
const courses = await zeus.course.all();

// /api/group/{id}
const group = await zeus.group.get(id);

// ...

See every endpoint and their Zeus object method equivalent on this wiki page.

The code JSDoc is identical to the official documentation.