This is a simple Flask API for retrieving ledger information and performing transaction calculations for PokerNow links.
- Clone the repository to your local machine:
git clone <repository_url>
- Navigate to the project directory:
cd flask-ledger-api
- Install the required dependencies using pip:
pip install -r requirements.txt
- Run the Flask application:
python app.py
- Access the endpoints using a web browser or API client:
-
GET /get_ledger: Retrieve the ledger information. Append
?url=<POKERNOW_LINK>
to the endpoint URL, replacing<POKERNOW_LINK>
with the PokerNow link (e.g.,http://127.0.0.1:5000/get_ledger?url=https://www.pokernow.club/games/pgldCJeNJgBxwUMm13HxJTquy
). -
GET /get_transactions: Retrieve the minimum transactions. Append
?url=<POKERNOW_LINK>
to the endpoint URL, replacing<POKERNOW_LINK>
with the PokerNow link (e.g.,http://127.0.0.1:5000/get_transactions?url=https://www.pokernow.club/games/pgldCJeNJgBxwUMm13HxJTquy
). -
GET /get_payment_strings: Retrieve the payment strings indicating who pays whom. Append
?url=<POKERNOW_LINK>
to the endpoint URL, replacing<POKERNOW_LINK>
with the PokerNow link (e.g.,http://127.0.0.1:5000/get_payment_strings?url=https://www.pokernow.club/games/pgldCJeNJgBxwUMm13HxJTquy
).
- Contributions are welcome! Feel free to submit pull requests or open issues for any improvements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.