This project contains sample code for interacting with the Blackboard Learn REST Web Services in Ruby. This sample was built with Ruby 3.0.0p0. It uses the rest-client gem for HTTP processing.
###Project at a glance:
-
Target: Blackboard Learn SaaS 2015.12.0 and above
-
Source Release: v2.0
-
Release Date 2020-12-29
-
Author: shurrey
-
Tested on Blackboard Learn SaaS Release 3900.2.0-rel.34+4ad580a
-
Updated for Ruby 3
-
Target: Blackboard Learn SaaS 2015.12.0 and above
-
Source Release: v1.0
-
Release Date 2016-03-15
-
Author: shurrey
-
Tested on Blackboard Learn SaaS Release 2015.12.0-ci.16+149e9d4
###Requirements:
- Ruby - This sample was built with Ruby 3.0.0p0
- Requires the following libraries: -- rest-client, installed with sudo gem install rest-client
The connection information is located at the top of the restdemo ruby file. You must change three values:
- $HOSTNAME: must be set equal to your test environment's URL with https.
- $KEY: replace with your key.
- $SECRET: replace with your secret.
This is a console app. You can run from the command prompt. The sample code allows you to perform the full Create, Read, Update, and Delete options on the following five objects:
- Datasource
- Term
- Course
- User
- Membership
To run the code, ensure you have followed the steps to configure the sample code, then simply navigate to the directory you cloned the project to and run ruby restdemo.rb. The code will run and print out all of the resulting objects from each call. It will
- Create the Datasource
- Create, Read, and Update the Term
- Create, Read, and Update the Course
- Create, Read, and Update the User
- Create, Read, and Update the Membership
- Read the Datasource
- Read the Term
- Read the Course
- Read the User
- Read the Membership
- Update the Datasource
- Update the Term
- Update the Course
- Update the User
- Update the Membership
- Delete the Membership
- Delete the User
- Delete the Course
- Delete the Term
- Delete the Datasource
This code will give you the base knowledge you need to interact with the Blackboard Learn REST services using Ruby. For a thorough walkthrough of this code, visit the corresponding Developer Documentation page here.