0.15.7 • Published 6 years ago

kth-canvas-api v0.15.7

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

This library is used to integrate with the Canvas LMS.

How to use

You need an instance of Canvas LMS to communicate with. Log in to that instance and generate an access token (As of this writing under Account/Settings/Approved integrations in Canvas). Store the newly generated access token:

const accessToken = '123123123123123123123123123123'

Then create a variable containing the url to the Canvas api.

const apiUrl = 'https://xxx.test.instructure.com/api/v1'

Now, instantiate CanvasApi with these two variables:

const CanvasApi = require('canvas-api')

const canvasApi = new CanvasApi(apiUrl, accessToken)

Example functions

List all accounts

canvasApi.listAccounts()
.then(accounts => console.log(JSON.stringify(accounts, null,4)))

List all courses

canvasApi.listCourses()
.then(courses => console.log(JSON.stringify(courses, null,4)))

List all users

canvasApi.listUsers()
.then(courses => console.log(JSON.stringify(courses, null,4)))
0.15.7

6 years ago

0.15.6

6 years ago

0.15.5

6 years ago

0.15.4

6 years ago

0.15.3

6 years ago

0.15.2

6 years ago

0.15.1

6 years ago

0.15.0

6 years ago

0.14.0

6 years ago

0.13.0

6 years ago

0.12.2

6 years ago

0.12.1

6 years ago

0.12.0

6 years ago

0.11.0

7 years ago

0.10.1

7 years ago

0.10.0

7 years ago

0.8.0

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.2.1

7 years ago