Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import clashroyale, asyncio
- async def top(client):
- p = await client.get_top_players()
- return p
- async def main():
- token = "my token"
- cr = clashroyale.official_api.Client(token=token, is_async=True)
- try:
- topplayers = top(cr)
- # more methods
- finally:
- await cr.session.close()
- asyncio.run(main())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement