🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

acorn-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-api

University of Toronto Acorn API

1.0.2
latest
Source
npm
Version published
Weekly downloads
9
125%
Maintainers
1
Weekly downloads
 
Created
Source

Acorn API (typescript)

This project is inspired by AcornAPI which is an Acorn API written in Java.

Installation

npm install acorn-api --save

Example

Login

import { Acorn } from 'acorn-api-js';
const example = new Acorn();
example.basic.login('user', 'pass');

Get Registrations

example.course.getEligibleRegistrations();

Get Student Courses

example.course.getEnrolledCourses();
example.course.getCartedCourses();

Get Course Info (Can also use it to get waiting list rank for a waitlisted course)

int registrationIndex = 0;
const courseCode = "CSC373H1", sectionCode = "Y", courseSessionCode = "20175";
const course = example.getExtraCourseInfo(registrationIndex, courseCode, courseSessionCode, sectionCode);

Enroll a Course (Not yet tested)

int registrationIndex = 0;
const courseCode = "CSC373H1", sectionCode = "Y", lecSection = "LEC,5101";
const result = example.course.enroll(registrationIndex, courseCode, sectionCode, lecSection);

Get Current Transcript

const academicReport = example.academic.getAcademicHistory();

Keywords

Acorn

FAQs

Package last updated on 15 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts