-
Notifications
You must be signed in to change notification settings - Fork 0
Sample ruby scripts to query Canvas.
License
tl-its-umich-edu/canvas-api-sandbox
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Sample scripts to query Canvas. The user information is factored out into user_info.rb and automatically included in each script. Note that user_info.rb itself must NEVER be checked into git. To use real tokens copy the template to user_info_rb and fill it in as appropriate. The API results are usually returned from Canvas as json and printed as json in the scripts. Some scripts format the output before printing. Some Canvas APIs may not return json due to bugs. The API structure is documented at: https://canvas.instructure.com/doc/api/ Running API calls as a different user is documented at: https://canvas.instructure.com/doc/api/file.masquerading.html Running API calls using institution specific SIS data is documented at: https://canvas.instructure.com/doc/api/file.object_ids.html Note that the non-production instances are often refreshed and that existing tokens will stop working when that is done. TTD: - Lots of room to factor out common printing and query specification. - Convert user_info to yml.
About
Sample ruby scripts to query Canvas.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published