Copyright © 2014-2015 New York State Education Department. All rights reserved.
The RICOne Java Client Library was developed using Java JDK 7, Spring’s RestTemplate (http://projects.spring.io/spring-framework/), and FasterXML Jackson (http://wiki.fasterxml.com/JacksonHome).
- Makes calls to the RICOne API using the SIFxPress model in Java projects
- User can login to auth server using credentials to retrieve provider information
- Uses POJO object responses
Authenticator auth = new Authenticator(authUrl, clientId, clientSecret);
for(Endpoint e : auth.GetEndpoints())
{
XPress xPress = new XPress(auth.getToken(), e.getHref());
}
- RicOneApi - Client Library
- RicOneApiTests - Test Console Outputs
- 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
final static String authUrl = "AUTH URL"
final static String clientId = "YOUR USERNAME";
final static String clientSecret = "YOUR PASSWORD";
- Code cleanup
- Removed RicOneApiClient.java
- Reworked Authenticator.java
- Included example loading authentication properties from properties 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
- Token now passed via header
- Paging passed via header
- Refactored method names
- i.e. GetXStudents() now getXStudents()
- 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
- Changed accessToken to access_token to reflect RFC 6750 specification
- Updated auth url
- Additional Service Paths
- xLeas/{id}/xCalendars
- xSchools/{id}/xCourses
- xSaffs/{id}/xLeas
- xRosters/{id}/xLeas
- xRosters/{id}/xCourses
- xStudents/{id}/xStaffs
- Modified Endpoint.java model file to include provider id
- In Authenticator.java, switched GetEndPoints() to match on provider id versus provider name
- Added max page size