-
Notifications
You must be signed in to change notification settings - Fork 3
Home
penggrin12 edited this page Sep 10, 2023
·
1 revision
Before those steps you will need to install/update
build
:
python -m pip install --upgrade build
- In the
cmd
run thebuild.bat
. - Its done! The
stupidwalletapi
should now be installed in your local Python installation.
- Run
python -m build
. - Cd into the
dist
directory. - Run
python -m pip install --force-reinstall xxx.whl
(replace thexxx
with the file name in thedist
directory that has a.whl
extension) - Its done! The
stupidwalletapi
should now be installed in your local Python installation.
import asyncio
import stupidwalletapi
swapi = stupidwalletapi.StupidWalletAPI("YOUR_TOKEN") # replace `YOUR_TOKEN` with your actual token from the @stupidwallet_bot
async def main():
cheque = await swapi.create_cheque(stupidwalletapi.WAV_COIN, 1) # stupidwalletapi.models.Cheque
print(cheque.id) # "d69cf27dfcf5f9acef781bf24c180d8e6dee6c5c"
asyncio.run(main())
Visit the Official Stupid Wallet API docs.