Blackboard Collaborate and Learn API samples for session report by course and session patching
This repository contains code samples covering REST API usage for Blackboard Collaborate and Blackboard Learn for the following use cases
- Check the Collaborate sessions that have guest access enabled and patch them
- Create a report on the Collaborate sessions per Learn course that outputs a CSV file
These examples are written in python 3 by leveraging the Bb-rest-helper library and Jupyter notebooks (as it is easy and convenient to run different parts of the code).
These code samples and the underlying Bb-rest-helper library are not supported by Blackboard and no warranties of any kind are provided.The intended usage is as tool to understand the REST Apis and the technical possiblities.
- Get the credentials for the Blackboard Collaborate API (The same LTI credentials configured in the Learn instance)and configure an application in Learn guide
- Clone this repository or download the files.
- Navigate to the credentials folder and edit
collab_config.json
andlearn_config.json
{
"url":"your server url",
"key":"your key",
"secret":"your secret"
}
- Set up your development environment, I have used VS Studio Code with python, jupyter and github extensions.
- Create a virtual environment
python3 -m venv env
- Use
pip
to install theBb-rest-helper
and theJupyiter library
pip3 install Bb-rest-helper
pip3 install jupyter
- Configure the virtual environment as the kernel for the jupyter notebook. Follow the guide
- Run or modify the examples at your leisure