ualbany-course-api
v1.0.1
Published
Simple library to retrieve dynamic data from the UAlbany Course webpage.
Downloads
1
Readme
UAlbany-Course-API
Simple library to retrieve dynamic data from the UAlbany Course webpage.
Installation
npm i ualbany-course-api
Basic Example
const course = require('ualbany-course-api');
// Retrieve CSI 333
course.request('csi', 333)
.then(res => console.log(res))
.catch(err => console.log(err));
// Retrieve all CSI courses.
course.request('csi')
.then(res => console.log(res))
.catch(err => console.log(err));
Documentation
Methods
request(subject, code)
fetches all entries of the course followed by the subject/code
Parameters
- subject - the subject abbreviation for the course, e.g: CSI = Computer Science, MAT/AMAT = Mathematics
- code - the course code, e.g: 333
Returns
- Array<Course> - an array of Course objects.
Classes
TBA, it's just JSON, there are no methods.