2017 © Pedro Peláez
 

library blackboard-rest-api-wrapper

Lightweight wrapper for https://developer.blackboard.com/portal/displayApi

image

razorbacks/blackboard-rest-api-wrapper

Lightweight wrapper for https://developer.blackboard.com/portal/displayApi

  • Monday, October 30, 2017
  • by jpuck
  • Repository
  • 1 Watchers
  • 0 Stars
  • 184 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Blackboard ReST API Wrapper

Lightweight wrapper for https://developer.blackboard.com/portal/displayApi, (*1)

See also https://razorbacks.github.io/blackboard-rest-api-wrapper/, (*2)

Inspired by https://github.com/blackboard/BBDN-REST-Demo-PHP, (*3)

Installation

via [composer][2]:, (*4)

composer require razorbacks/blackboard-rest-api-wrapper

Usage

// setup
require_once __DIR__.'/vendor/autoload.php';

use razorbacks\blackboard\rest\Api;

$server = 'https://learn.uark.edu';
$applicationId = 'your-application-id';
$secret = 'secret';

$blackboard = new Api($server, $applicationId, $secret);

// create a new manual grade column for a course
$courseId = '_123_1';
$gradeColumn = [
    'name' => 'Example Assignment',
    'description' => 'This is something we did for course credit.',
    'score' => [
        'possible' => 10,
    ],
    'availability' => [
        'available' => 'Yes',
    ],
];

// create and hydrate the model with new ID
$gradeColumn = $blackboard->post("/courses/{$courseId}/gradebook/columns", $gradeColumn);

// assign a grade to a student
$username = 'jdoe';
$endpoint = "/courses/{$courseId}/gradebook/columns/{$gradeColumn['id']}/users/userName:$username";
$blackboard->patch($endpoint, [
    'score' => 9,
]);

See the tests for more examples., (*5)

Testing

The test suite is composed of integration tests making real network calls. See the documentation for setting up a vagrant virtual machine server., (*6)

The Versions

30/10 2017

dev-master

9999999-dev

Lightweight wrapper for https://developer.blackboard.com/portal/displayApi

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Jeff Puckett

30/10 2017

dev-dev

dev-dev

Lightweight wrapper for https://developer.blackboard.com/portal/displayApi

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Jeff Puckett

23/10 2017

0.2.0

0.2.0.0

Lightweight wrapper for https://developer.blackboard.com/portal/displayApi

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Jeff Puckett

21/10 2017

0.1.1

0.1.1.0

Lightweight wrapper for https://developer.blackboard.com/portal/displayApi

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Jeff Puckett

21/10 2017

0.1.0

0.1.0.0

  Sources   Download

The Requires

 

The Development Requires