1.0.0 • Published 5 years ago

culearn-sdk v1.0.0

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
5 years ago

Carleton University Learning Management System (cuLearn) SDK

  • This SDK is made for Carleton students or staffs to access cuLearn contents and data directly from their own applications/programs in purposes of testing and analyzing.
  • For example, we can develop a dashboard that manages all courses and schedules in your own style, or a program that utilizes Tensorflow or other AI frameworks to evaluate the quality of our study and predict the grades in upcomming exams
  • Its a good opportunity for us to dig our own things in the university while using computer science knowledge
  • Take your own risks by using this sdk since the session cookie, cuLearn username and password (optional) are visible in codes. Do NOT share the codes with your cookie, username or password to others

Current Version : 1.0.0

CUResponse

Properties or FunctionsType
usernameString
cookieString
semestersSemesters

Semesters

Properties or FunctionsType
itemsArray
lengthInteger
add(item : Semester)Function => void
get(index: Integer)Function => Semester
remove(index: Integer)Function => Semester
each(callback : (index: number, data: Semester) => void)Callback Function => void

Courses

Properties or FunctionsType
semesterSemester
itemsArray
lengthInteger
add(item : Course)Function => void
get(index: Integer)Function => Course
remove(index: Integer)Function => Course
each(callback : (index: number, data: Course) => void)Callback Function => void

Semester

Properties or FunctionsType
titleString
termString
coursesCourses

Course

Properties or FunctionsType
titleString
crnArray
urlString
instructorsArray // In Progress
contentContent // In Progress

Quick Start Example

var cuSDK = require('culearn-sdk')

cuSDK.connect({username: 'your-username', password: 'your-password'}, function(err, res){
    if(err){
        return console.error(err)
    }
    res.semesters.each(function(index, semester){
        console.log(`# ${index} | ${semester.title} | ${semester.term} | ${semester.courses.length}`)
        semester.courses.each(function(index, course){
            console.log(`  * ${index} | ${course.title} | ${course.crn} | ${course.url}`)
        })
    })
})