@tuclase-tupais/valence
v0.1.85
Published
<p align="center"> <a href="" rel="noopener"> <img height=120px src="https://www.tuclase.cl/wp-content/uploads/2019/11/Logo-tu-clase-tu-pais.png" alt="Tu clase, tu pais"></a> </p>
Downloads
97
Readme
📝 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