API for leo library
Please DO NOT use for auto reservation. Please respect who get up early to reserve seats.
const API = require("./index");
(async () => {
let api = new API("username", "password", "https://link/to/the/app");
try {
await api.login();
console.log(await api.getHistory());
} catch (e) {
console.log(e.message);
}
})();
Checkout more examples.
Checkout docs;
- COMPLETE
- STOP
- CANCEL
- LEAVE
- RESERVE
- CHECK_IN
Copyright (C) 2020-2021, Sparta_EN<[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.