npm install vulkan-js
or
yarn add vulkan-js
Import the package
import Vulkan from "vulkan-js";
Initialize a new instance of the client
const client = new Vulkan();
Register a new device on UONET+
client.getCertificate(token, pin, symbol, deviceName, androidVersion).then(certificate => {
// save the certificate to somewhere, in this case I'm saving it to a json file
fs.writeFileSync("./config.json", JSON.stringify(certificate), "utf8");
});
Get the students of the account and start the app
client.getStudents(certificate).then(students => {
client.startApp(certificate, students);
});
After that you can explore the source or TypeScript IntelliSense and use the rest of the features (more will be implemented).