be.ugent:valence-sdk-java

Java SDK for working with the Brightspace LMS's API.

License

License

Categories

Categories

Java Languages
GroupId

GroupId

be.ugent
ArtifactId

ArtifactId

valence-sdk-java
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

be.ugent:valence-sdk-java
Java SDK for working with the Brightspace LMS's API.
Project URL

Project URL

https://github.com/mm-dict/valence-sdk-java
Source Code Management

Source Code Management

https://github.com/mm-dict/valence-sdk-java

Download valence-sdk-java

How to add to project

<!-- https://jarcasting.com/artifacts/be.ugent/valence-sdk-java/ -->
<dependency>
    <groupId>be.ugent</groupId>
    <artifactId>valence-sdk-java</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/be.ugent/valence-sdk-java/
implementation 'be.ugent:valence-sdk-java:1.0.1'
// https://jarcasting.com/artifacts/be.ugent/valence-sdk-java/
implementation ("be.ugent:valence-sdk-java:1.0.1")
'be.ugent:valence-sdk-java:jar:1.0.1'
<dependency org="be.ugent" name="valence-sdk-java" rev="1.0.1">
  <artifact name="valence-sdk-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='be.ugent', module='valence-sdk-java', version='1.0.1')
)
libraryDependencies += "be.ugent" % "valence-sdk-java" % "1.0.1"
[be.ugent/valence-sdk-java "1.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
commons-codec : commons-codec jar 1.7

test (1)

Group / Artifact Type Version
junit : junit jar 4.10

Project Modules

There are no modules declared in this project.

valence-sdk-java

D2L Valence SDK for Java

Usage:

Create an Application context using your application key & secret given to you by D2L:

ID2LAppContext appContext = AuthenticationSecurityFactory
    .createSecurityContext("appId", "appKey", "https://school.desire2learn.com");

Redirect the user to the uri constructed by this, passing in the callback url:

appContext.createWebUrlForAuthentication(new URI("https://myhost.com/"));

Create a user context with the user's key & secret that was requisitioned from the redirect:

ID2LUserContext userContext = appContext.createUserContext("userId", "userKey");

Create the Authenticated URI from the user's context:

URI uri = userContext.createAuthenticatedUri("/d2l/api/lp/1.0/users/", "GET");

Versions

Version
1.0.1