canvas-sync

command module
v0.0.0-...-fe9f299 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 17 Imported by: 0

README

Canvas Sync

canvas-sync downloads files from a Canvas by Instructure web server and creates a similar folder structure on your local computer.

https://user-images.githubusercontent.com/9221409/198899719-59d226a6-753e-4a4a-8d3a-ded6ad2dee2a.mp4

Setup

Access Token

canvas-sync uses the Canvas LMS API to download files from the Canvas server. In order to authenticate with the server an access token must be generated. An access tokens allows third-party applications such as canvas-sync to access Canvas resources on your behalf.

To create a token:

  1. On Canvas, go to "Account" followed by "Settings".
  2. Under "Approved integrations", click on the "New access token" button.
  3. Put canvas-sync as the token's purpose and then click on the "Generate token" button.
  4. Copy and paste the token in the configuration file, described below.
Configuration File

Next, create a folder called canvas-sync in your user config directory and then within this folder, create a JSON file called config.json like the following

{
    "url": "https://canvas.northwestern.edu",
    "token": "AUTHENTICATION TOKEN GOES HERE",
    "directory": "D:/Canvas",
    "ignored_courses": [
        178029,
        178124,
        145482
    ]
}

where:

  • url is the URL of your Canvas server;
  • token is the authentication token created as described in the previous section;
  • directory is the path to the directory on the local file system where you want Canvas files to be synced to;
  • and ignored_courses is a list of course IDs that you do not want to be synced.

A future version of canvas-sync will create this config file automatically.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL