Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Canvas API

No security coverage Under active development 7 sites

Part of the Canvas ecosystem · 48 projects

This module provides tools to interact with the Canvas Learning Management System API. It allows programmatic access to Canvas features and can also automatically resize the Drupal window when embedded within Canvas.

7.x-1.x
This is a simple module that helps implement the Canvas LMS API where it makes sense. Right now this provides:

  • A js function that will automatically resize the parent window if Drupal is iframed into Canvas LMS

This is not for LTI integration, if you are looking for that, check out https://drupal.org/project/lti_tool_provider . If your looking for something more future looking that utilizes both of these, check out https://www.elmsln.org/

Thanks to Tim Bracken for writing the snippet this is based off.

7.x-2.x
The 7.x-2.x branch is a backport of the 8.x-1.x branch and provides a single function, canvas_api(), that can be used to interface with Instructure's Canvas API set.

8.x-1.x
The 8.x-1.x branch of the Canvas API module provides classes to interact with Instructure's Canvas API set. For example, if you wanted to update a user's Canvas email based on a change in the Student Information System, this api would allow you to do that programmatically.

2.x
This branch pares down the module, so that rather than trying to build wrapper classes for all of Canvas' APIs, it instead takes in an HTTP method, a path, and parameters. So if, for example, you wanted to get all of the users in ART 101 (where the SIS ID is 3456), you could do to the following:

$users = \Drupal::service('canvas_api')->setMethod('GET')
    ->setPath('courses/sis_course_id:3456/users')
    ->request()

Also includes a tester page for testing API calls.

Drupal 11 · not 10

Ask your assistant about Canvas API

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Jul 2023
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.1.1 Stable 11 Oct 13, 2026
2.1.0 Stable 11 Oct 12, 2026
2.0.0-rc2 Pre-release 8–11 Sep 13, 2024
2.0.0-rc1 Pre-release 8–10 Sep 18, 2023
2.0.0-alpha1 Pre-release 8–9 Jul 18, 2023