F95API/test/user-test.js

16 lines
372 B
JavaScript
Raw Normal View History

2020-10-24 18:52:29 +00:00
const F95API = require("../app/index.js");
2020-09-29 15:11:43 +00:00
2020-10-24 18:52:29 +00:00
F95API.debug(true);
2020-10-11 20:45:20 +00:00
main();
2020-09-29 15:11:43 +00:00
async function main() {
2020-10-24 18:52:29 +00:00
const loginResult = await F95API.login("MillenniumEarl", "f9vTcRNuvxj4YpK");
2020-09-29 15:11:43 +00:00
if (loginResult.success) {
2020-10-24 18:52:29 +00:00
await F95API.loadF95BaseData();
const gameData = await F95API.getGameData("a struggle with sin", false);
2020-10-11 20:45:20 +00:00
console.log(gameData);
}
2020-10-24 18:52:29 +00:00
F95API.logout();
}