@tuclase-tupais/valence
Typescript abstraction layer on top of Valence for high level manipulation
📝 Table of Contents
About
This a Valence API version on steroids
Getting Started
You will need valid Valence API credentials.
First, registrate an LTI app
Once you get those valid credentials, you can start playing arround.
import { ValenceAPI } from "../ValenceAPI";
// Sample config from https://apitesttool.desire2learnvalence.com/
const api = new ValenceAPI({
appId: "31brpbcCLsVim_K4jJ8vzw",
appKey: "sagYSTT_HOts39qrGQTFWA",
userId: "q4bxJ2d4dQ0ctaMabhjzEY",
userKey: "_VF9gm86GDD0PkAdiIDGB3",
baseUrl: "https://devcop.brightspace.com",
// Optional. Used for navbar manipulation
username: "web username",
password: "web password"
});
// Get the Organization Info and print it out.
api.getOrganizationInfo()
.then(orgInfo => {
console.log("Organization info", orgInfo)
});
✍️ Authors
🎉 Acknowledgements
- Desire2Learn: For the very well documented website