Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brightspace/valence-sdk-java
D2L Valence SDK for Java
https://github.com/brightspace/valence-sdk-java
Last synced: 5 days ago
JSON representation
D2L Valence SDK for Java
- Host: GitHub
- URL: https://github.com/brightspace/valence-sdk-java
- Owner: Brightspace
- License: apache-2.0
- Created: 2013-10-25T13:02:18.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-12T23:34:13.000Z (about 4 years ago)
- Last Synced: 2024-04-11T00:43:22.337Z (7 months ago)
- Language: Java
- Size: 299 KB
- Stars: 9
- Watchers: 8
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
valence-sdk-java
================D2L Valence SDK for Java
Usage:
Create an Application context using your application key & secret given to you by D2L:
```java
ID2LAppContext appContext = AuthenticationSecurityFactory
.createSecurityContext("appId", "appKey", "https://school.desire2learn.com");
```
Redirect the user to the uri constructed by this, passing in the callback url:
```java
appContext.createWebUrlForAuthentication(new URI("https://myhost.com/"));
```
Create a user context with the user's key & secret that was requisitioned from the redirect:
```java
ID2LUserContext userContext = appContext.createUserContext("userId", "userKey");
```
Create the Authenticated URI from the user's context:
```java
URI uri = userContext.createAuthenticatedUri("/d2l/api/lp/1.0/users/", "GET");
```