Skip to content
forked from wwwg/kahoot.js

A library for interacting with Kahoot API.

License

Notifications You must be signed in to change notification settings

csprl/kahoot.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Kahoot.js is a library to interact with the Kahoot API. Currently kahoot.js supports joining and interacting with quizzes. Installation requires Node.js 6.0.0 or higher.
NPM

Basic Example

var Kahoot = require("kahoot.js");
var client = new Kahoot;
console.log("Joining kahoot...");
client.join(9802345 /* Or any other kahoot game pin */, "kahoot.js");
client.on("joined", () => {
    console.log("I joined the Kahoot!");
});
client.on("quizStart", quiz => {
    console.log("The quiz has started! The quiz's name is:", quiz.name);
});
client.on("questionStart", question => {
    console.log("A new question has started, answering the first answer.");
    question.answer(0);
});
client.on("quizEnd", () => {
    console.log("The quiz has ended.");
});

Documentation / How to use

See Documentation.md.

Examples

See examples/ and tests/.

About

A library for interacting with Kahoot API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%