An api built to interact with Akinator based in NodeJS.
This package has many features that you may use to interact with the Akinator api. Below you will find information on how to install the package + the package's features. This package supports 15 different languages.
Requirement | Version |
---|---|
Node | ^8.8.0 |
NPM | ^5.5.1 |
npm i akinator-api
us - English
de - German
fr - French
in - Hindi
es - Spanish
cn - Chinese
ar - Arabic
il - Hebrew
it - Italian
jp - Japanese
kr - Korean
nl- Netherlands
pl - Polish
pt - Portuguese
ru - Russian
tr - Turkish
{
"session":"20",
"signature":"793609611",
"question":"Is your character's gender female?",
"answers":[
"0 - Yes",
"1 - No",
"2 - Don't know",
"3 - Probably",
"4 - Probably not"
]
}
const api = require('akinator-api');
api.start(region, (gamedata, error) => {
if (error) {
console.log(error);
} else {
console.log(gamedata);
}
})
{
"nextquestion":"Is your character a youtuber?",
"progress":"2.05700",
"answers":[
"0 - Yes",
"1 - No",
"2 - Don't know",
"3 - Probably",
"4 - Probably not"
]
}
const api = require('akinator-api');
api.answer(region, session, signature, answerid, step, (next, error) => {
if (error) {
} else {
console.log(next);
step++;
}
})
- Completion Detection