OneRosterOAuth 1.0.0

OneRoster OAuth Package

Homepage: https://github.com/classlinkinc/onerosteroauth.net

Platform: NuGet

Language: C#

Keywords: OneRoster, OAuth, ClassLink

View on registry: https://www.nuget.org/packages/OneRosterOAuth/1.0.0

Direct download link: https://www.nuget.org/api/v2/package/OneRosterOAuth/1.0.0

Install: Install-Package OneRosterOAuth -Version 1.0.0


OneRoster OAuth .NET Plugin

Usage:

// include the library
using OneRosterOAuth;

// Initialize new OneRosterConnection, inputting your Key and Secret
var connection = new OneRosterConnection(oneRosterKey, oneRosterSecret);

// Hit users endpoint, requesting only 1 active user
// use OneRosterConnection.urlEncode for OAuth-safe url encoding
var filter = "filter=" + connection.urlEncode("status='active'");
var url = "https://example.oneroster.com/learningdata/v1/users?limit=1&" + filter;
HttpResponseMessage response = await connection.makeRequest(url);

// Get response status code
var statusCode = response.StatusCode;

// Get response content
var content = await response.Content.ReadAsStringAsync();

Releases

  • 1.0.0 - January 06, 2017 20:05

Project Statistics

SourceRank 8
Dependencies 0
Dependent projects 0
Dependent repositories 0
Total releases 1
Latest release
First release
Stars 4
Forks 0
Watchers 2
Contributors 1
Repo Size: 18.6 KB

Top Contributors See all

Cody Robibero

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2017-01-06 20:31:57 UTC