A go wrapper of the blackboard REST API.
Find a file
2026-11-24 06:45:09 -06:00
.vscode Minor clean up 2026-10-12 20:09:33 -05:00
endpoints Start on system service 2026-11-15 08:10:11 -06:00
.gitignore Add license file back 2026-05-01 15:32:27 -05:00
announcement.go Minor refactoring 2026-03-17 15:53:20 -05:00
announcement_api.go Update urls after migration 2026-11-24 06:44:32 -06:00
auth.go TODO and spelling clean up 2026-06-13 19:40:52 -05:00
client.go Update urls after migration 2026-11-24 06:44:32 -06:00
constants.go Make a AvailabilityStatus type to replace string 2026-06-13 09:08:09 -05:00
course.go Add changes after testing new functions 2026-07-09 18:00:26 -05:00
course_api.go Update urls after migration 2026-11-24 06:44:32 -06:00
date.go Minor clean up 2026-06-13 13:14:14 -05:00
date_test.go Test out date formatting functions 2026-05-21 05:47:06 -05:00
discussion.go Minor clean up 2026-10-12 20:09:33 -05:00
discussion_api.go Update urls after migration 2026-11-24 06:44:32 -06:00
errors.go Add some http code cases 2026-11-10 17:40:26 -06:00
go.mod Update urls after migration 2026-11-24 06:44:32 -06:00
gradebook.go Minor clean up 2026-10-12 20:09:33 -05:00
gradebook_api.go Update urls after migration 2026-11-24 06:44:32 -06:00
input.go Add note for future self 2026-11-15 08:34:40 -06:00
LICENSE Add license file back 2026-05-01 15:32:27 -05:00
README.md Update readme 2026-11-24 06:45:09 -06:00
results.go Minor clean up 2026-10-12 20:09:33 -05:00
system.go Start on system service 2026-11-15 08:10:11 -06:00
system_api.go Start on system service 2026-11-15 08:10:11 -06:00
user.go Fix typo in last commit. Remove old debug package. 2026-06-14 08:45:41 -05:00
user_api.go Update urls after migration 2026-11-24 06:44:32 -06:00

Chawk

A Go client for the Blackboard REST API designed to make common admin tasks like managing users, enrollments, and course data easier to automate.

Note

This is not a 1-to-1 mapping of the Blackboard API. It started as a collection of functions I kept needing for various internal projects. It only includes the functionality and endpoints I needed, I will add more as the need comes up. While it is stable enough for production, we highly recommend reviewing the source code and thoroughly testing it in your development instance first.

Setup

To start, you will need:

  1. Request access to the Blackboard REST APIs through the Developer Portal.
  2. After registering your application, you will receive an application key and secret.
  3. Your institution's Blackboard URL.

Installing

go get codeberg.org/sugarvoid/chawk

Example of creating a client

clientKey := "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
clientSecret := "xxxxxxxxxxxxxxxxxxxxxxxxx"
baseURL := "https://blackboard.xxxx.edu"
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()

// Adding an AppName is optional, but highly encouraged as it prevents conflict with caching bearer tokens.
client, err := chawk.NewClient(clientKey, clientSecret, baseURL, chawk.WithAppName("exampleApp"))
if err != nil {
    fmt.Printf("Failed to create BlackboardClient: %v", err)
}

More examples can be found here.