Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import clashroyale, asyncio
  2.  
  3.  
  4. async def top(client):
  5. p = await client.get_top_players()
  6. return p
  7.  
  8.  
  9. async def main():
  10. token = "my token"
  11. cr = clashroyale.official_api.Client(token=token, is_async=True)
  12. try:
  13. topplayers = top(cr)
  14. # more methods
  15. finally:
  16. await cr.session.close()
  17.  
  18. asyncio.run(main())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement