-
API Cookbook: Adding a user
Originally posted on 6/11/2013 on the Valence Developer Blog by Sarah-Beth Bianchi. In this week's API Cookbook recipe, we demonstrate how to add a new user to the Learning Environment using Brightspace APIs. In this scenario, a student has enrolled and can log in to the institution's portal, which acts as a student…
-
API Cookbook: Adding Course Content
Originally posted on 5/17/2013 on the Valence Developer Blog by Sarah-Beth Bianchi. Brightspace APIs expose functionality to allow users to add and remove content from courses. The following examples show how these APIs could be used to create a standard outline for a course. Suppose all courses must have the following…
-
API Cookbook: Course Search
Originally posted on 7/4/2013 on the Valence Developer Blog by Sarah-Beth Bianchi. In a previous blog post, Diving into Valence with the Course Search sample using the Valence Learning Framework APIs. In this week's API Cookbook Recipe, we'll review the specific APIs that sample uses to retrieve courses, departments and…
-
API Cookbook: Creating & Updating Sections
Originally posted on 1/27/2014 on the Valence Developer Blog by Sarah-Beth Bianchi. The way you use the Valence Learning Framework API to create sections for course offerings is idiosyncratic. Assume you start with a blank course, that has no descendant org units (no sections, no groups, nothing). In this example, let's…
-
API Cookbook: Dropbox
Originally posted on 9/9/2013 on the Valence Developer Blog by Sarah-Beth Bianchi. This week's API Cookbook recipe covers using submissions and folders in dropbox. We will look at managing folders, retrieving and passing in submissions, and fetching a submission's categories. Problem You want to retrieve the list of…
-
API Cookbook: Entering the Attendance Value for Students in a Grade Item from a .csv File
First, you have to create a grade item for "Attendance" of type "Numeric" in the course using the following API call: "POST /d2l/api/le/1.0/(orgUnitId)/grades/""{\n" + " \"MaxPoints\": 10,\n" + " \"CanExceedMaxPoints\": false,\n" + " \"IsBonus\": false,\n" + " \"ExcludeFromFinalGradeCalculation\": false,\n" + "…
-
API Cookbook: Final Grades Sample
The Final Grades sample is quite similar to the The Basic Sample. It builds upon that sample to demonstrate how to make a series of Brightspace API calls and do some processing to accomplish a task that joins data together from several sources. The sample assumes the calling user context is an instructor (and that in all…
-
API Cookbook: Headless (Non-Interactive) Web Service Workflow
Before you start You need to have this information:* Your Application's Id-Key pair (let's say 'appID' and 'appKey', but they won't look like that) * The domain for your back-end service (which LMS are you calling): (e.g. 'https://d2l.someUniversity.edu') * The callback point for your app/service where the LMS…
-
API Cookbook: How to Update a User's Password
By: Viktor Haag, March 17, 2014 as a reply to a forum question. The appropriate call to update a user's password by providing a new one is: PUT /d2l/api/lp/(version)/users/( userId)/password { "Password": <new password string> } Some notes: * Note that the call does not accept a trailing slash, and it is also a PUT route.…