BBLearnWrapper 2.0.9

dotnet add package BBLearnWrapper --version 2.0.9
                    
NuGet\Install-Package BBLearnWrapper -Version 2.0.9
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BBLearnWrapper" Version="2.0.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BBLearnWrapper" Version="2.0.9" />
                    
Directory.Packages.props
<PackageReference Include="BBLearnWrapper" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BBLearnWrapper --version 2.0.9
                    
#r "nuget: BBLearnWrapper, 2.0.9"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BBLearnWrapper@2.0.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BBLearnWrapper&version=2.0.9
                    
Install as a Cake Addin
#tool nuget:?package=BBLearnWrapper&version=2.0.9
                    
Install as a Cake Tool

BB Learn Wrapper

semantic-release: angular dotnet package Nuget Nuget GitHub last commit

Table of Contents:

About the Project

BB Learn Wrapper is a REST api client for Blackboard Learn api. This library is not associated with Blackboard.

With BB Learn Wrapper you will:

  • write queries to Learn Api with a Fluent grammar

  • have a library continuously tested

Supported Requests

  • Get a Course and Courses
  • Get a Column Grade and all Column Grades
  • Get a Grade Column and all Grade Columns
  • Get a User and all Users

Examples

Quick Start

Create a new instance of BB Learn Wrapper api using:

Learn learn = new Learn(
    bb_url,
    bb_secret,
    bb_username
    );

After that, you can call BB Learn api server using:

// Prepare the request.
CourseRequest courseRequest = learn.Course(courseId);
// Execute the request invoking `GetAsync` method.
Course courseResult = await courseRequest.GetAsync();

You can go deep with additional fluent grammar method chain:

// Prepared and executed request.
Response<GradeColumn> gradeColumnsResponse = await learn.Course(courseId).Gradebook().Columns().Get();

Note: you will make any request until you invoke a Get/Post/Put/Delete (deprecated) or GetAsync/PostAsync/PutAsync/DeleteAsync method.

Hiding pagination

If a response has more than 200 results (default for Blackboard, you can set any limit by your own), calling like this:

Response<ColumnGrade> gradesResult = await columnGradeRequest.Get();

it will return paginated:

{
    "results": [...
    ],
    "paging": {
        "nextPage": "/learn/.../users?offset=200"
    }
}

The nextPage value is the url to call to get the next 200 results for the request:

Response<ColumnGrade> gradesResult = await columnGradeRequest.Get(offset: 200);

it will return paginated:

{
    "results": [...
    ],
    "paging": {
        "nextPage": "/learn/.../users?offset=400"
    }
}

and so on until you obtain this result:

{
    "results": [...
    ]
}

so you can stop to query the server.

The library can follow those links automatically using the parameter follow: true in the GET request:

Response<ColumnGrade> gradesResult = await columnGradeRequest.Get(follow: true);

returning:

{
    "results": [...
    ]
}

where "results" containing all results.

Contributing

You can contribute by creating more requests endpoint callers and more unit tests. After that, you can work to make this library more fault tollerant and more generic, to speed up development of new features.

The central development branch is main, which should be clean and ready for release at any time. In general, all changes should be done as feature branches off of main. To make a one-off code change:

  1. Choose a descriptive branch name. It should be lowercase, hyphen-separated, and a noun describing the change, (so, fuzzy-rules, but not implement-fuzzy-rules). Also, it shouldn't start with hotfix or release

  2. Create a new branch with this name, starting from main. In other words, run:

    git fetch upstream git checkout main git merge upstream/main git checkout -b your-branch-name

  3. Make a commit to your feature branch. Each commit should be self-contained and have a descriptive commit message that helps other developers understand why the changes were made.

  4. When your feature is ready to merge, create a pull request.

  5. Address review comments until all reviewers give LGTM (looks good to me)

  6. Wait reviewers merging your pull request and celebrate! You have contributed to bb-learn-wrapper.

Local Development

Fill C:\work\work\BBLearnWrapper\BBLearnWrapper.Tests\Properties\launchSettings.json file with your credentials for a Learn instance to run unit tests in your local environment.

Refer to BB Dev Doc for new api and model documentation.

You can contribute adding more unit tests, adding documentation to implemented api and improving code readability.

You can investigate on the possibility to use Flurl or Restsharp as http library.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.9 446 11/29/2022
2.0.8 518 4/28/2022
2.0.7 529 4/13/2022
2.0.6 500 4/12/2022
2.0.5 511 4/12/2022
2.0.4 490 4/5/2022
2.0.3 494 4/5/2022
2.0.2 493 4/5/2022
2.0.2-beta.1 200 4/5/2022
2.0.1 495 4/4/2022