F95API/app/test.js

18 lines
500 B
JavaScript
Raw Normal View History

const { debug, login, getGameData, loadF95BaseData, getUserData, logout } = require("../app/index");
2020-09-29 15:11:43 +00:00
//debug(true);
2020-09-29 15:11:43 +00:00
main();
async function main() {
let loginResult = await login("MillenniumEarl", "f9vTcRNuvxj4YpK");
if (loginResult.success) {
await loadF95BaseData();
let gameData = await getGameData("kingdom of deception", false);
console.log(gameData.pop());
// let userData = await getUserData();
// console.log(userData);
2020-09-29 15:11:43 +00:00
}
logout();
}