new version

This commit is contained in:
deesiigneer
2024-04-18 21:45:13 +05:00
parent eff14052fd
commit b3d56a6059
32 changed files with 612 additions and 458 deletions

13
examples/webhook.py Normal file
View File

@@ -0,0 +1,13 @@
from pyspapi import SPAPI
from asyncio import get_event_loop
spapi = SPAPI(card_id='CARD_ID', token='TOKEN')
# print(spapi.webhook_verify(data='webhook_data', header='webhook_header'))
async def main():
print(await spapi.update_webhook(url='https://example.com/webhook'))
loop = get_event_loop()
loop.run_until_complete(main())