New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/james-atkins/canvas-sync

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/james-atkins/canvas-sync

  • v0.0.0-20230105124359-fe9f2991f300
  • Source
  • Go
  • Socket score

Version published
Created
Source

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.

FAQs

Package last updated on 05 Jan 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc