13 lines
380 B
Python
13 lines
380 B
Python
|
from .base import Base
|
||
|
|
||
|
class Player(Base):
|
||
|
|
||
|
def get_player(self, tag: str):
|
||
|
url = "https://api.clashofclans.com/v1/players/%23{}"
|
||
|
return self.get(url, tag)
|
||
|
|
||
|
def verify_token(self, tag: str, token: str):
|
||
|
payload = {"token":token}
|
||
|
url = "https://api.clashofclans.com/v1/players/%23{}/verifytoken"
|
||
|
return self.post(url, tag, payload)
|