Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

SpartaEN/leo-library-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leo-library-api

API for leo library

Disclaimer

Please DO NOT use for auto reservation. Please respect who get up early to reserve seats.

Usage

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.

HMAC-SHA256 Signature

Checkout docs;

Reservation status list

  • COMPLETE
  • STOP
  • CANCEL
  • LEAVE
  • RESERVE
  • CHECK_IN

LICENSE

Copyright (C) 2020-2021, Sparta_EN<nya@sparta-en.org>

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/>.

About

API for leo library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published