Copyright © 2014-2016 New York State Education Department. All rights reserved.
The RICOne .NET Client Library was developed using .NET 4 and RestSharp (http://restsharp.org/).
- Makes calls to the RICOne API using the xPress model in .NET projects
- User can login to the authentication server using credentials to retrieve provider information
- Uses POCO object responses
Authenticator auth = Authenticator.Instance;
auth.Authenticate(authUrl, clientId, clientSecret);
foreach (Endpoint e in auth.GetEndpoints())
{
XPress xPress = new XPress(e.href);
}
- RicOneApi - Client Library
- RicOneApi.Tests - Test console outputs of all service paths
- SampleConsole - Simple console app showing use
- View the library documentation
- Download the Project
- Get your OAuth server credentials
- Open SampleConsole
- Add the auth url and credentials to clientId and clientSecret
const string authUrl = "AUTH URL";
const string clientId = "YOUR USERNAME";
const string clientSecret = "YOUR PASSWORD";
- Updated Authenticator class to include Authenticate() where the auth server url and credentials are passed
- Removed GetDecodedToken from Authenticator class and moved it to the DecodedToken class
- Modified Authenticator.cs
- Modified XPress.cs
- Check token expiration and refresh if expired
- Code clean-up
- Removed RicOneApiClient.cs
- Reworked Authenticator.cs
- Included example loading authentication values from config file
- Added xStaff and xStudent account provisioning methods
- Added GetToken() method to Authenticator
- Added GetDecodedToken() method to Authenticator
- Returns JWT token payload values: application_id, iss, iat, exp
- Paging passed via header
- Dropped SIF prefix from SIFXPress class, now XPress
- Ability to access response status code, status message, and headers
- Removed LoginId from XContactType, XStaffType, and XStudentType
- Added XAppProvisioningInfoType
- Added to XContactType, XStaffType, and XStudentType
- Changed XYearGroupListType to XGradeLevelListType
- Changed in XSchoolType
- Auth url now configurable
- Updated auth url
- Additional Service Paths
- xLeas/{id}/xCalendars
- xSchools/{id}/xCourses
- xSaffs/{id}/xLeas
- xRosters/{id}/xLeas
- xRosters/{id}/xCourses
- xStudents/{id}/xStaffs
- Added System.Net assembly due to invalid certificate on testing server
- Modified Endpoint.cs model file to include provider id
- In Authenticator.cs, switched GetEndPoints() to match on provider id versus provider name
- Added max page size
- Renamed SIFxPress model files to reflect data API naming types