Skip to content

Instantly share code, notes, and snippets.

@bennettscience
Created February 1, 2018 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennettscience/67f22a7d2e782a6e7a2853b39641e1ab to your computer and use it in GitHub Desktop.
Save bennettscience/67f22a7d2e782a6e7a2853b39641e1ab to your computer and use it in GitHub Desktop.
Playing with the Canvas LMS python API
from canvasapi import Canvas
API_URL = 'https://my.url.com'
API_KEY = 'mySTringKEy123'
canvas = Canvas(API_URL, API_KEY)
outcome = canvas.get_outcome(5426)
class Rating:
description = "Exceeds Expectations"
points = 4
outcome.update(Rating)
@punitaojha
Copy link

Hi Brian . I was following your conversation via a slack channel . Absolutely new to canvas api . Can you help me understand what is api_url and api_key and from where I can get these ? I have an account on canvas LMS .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment