A Clash of Clans API
Project description
ClashofClans-API is an easy to use API for the mobile game ClashofClans
Installing
Install and update using pip:
$ pip install clashofclans-api
Create an API token
An API token is required to execute the script. You can create one here.
A Simple Example
from ClashofClans import ClashofClans
coc = ClashofClans("your API token")
response = coc.players.get_player_info("e.g. #9Q8QYQ20Q or 9Q8QYQ20Q")
print(response)
$ python3 file.py
(200, <Response [200]>, {'tag': '#9Q8QYQ20Q', 'name': 'Orange', 'townHallLevel': 15, 'townHallWeaponLevel': 4, 'expLevel': 244, ...
Disclaimer
This content is not affiliated with, endorsed, sponsored, or specifically approved by Supercell and Supercell is not responsible for it. For more information see Supercell’s Fan Content Policy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file clashofclans-api-1.0.1.tar.gz
.
File metadata
- Download URL: clashofclans-api-1.0.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f4eecc3e76ebef7d7a118c96b5c34bf365861b42174192c341a13e7e709fb9 |
|
MD5 | 71098d5675c3b14dd1373f524e19d7e8 |
|
BLAKE2b-256 | be6609e1b12aa1f25efeb719edf8eb394f6bd2a4350615579fb7d60d4b28dad9 |
File details
Details for the file clashofclans_api-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: clashofclans_api-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b2cbcb210662081cc90d05248cac9ecfb0bdbae20dc1d1008e1fef8a18c58f |
|
MD5 | 5555b8f5d26c2c560a088f5dc4c7ac6e |
|
BLAKE2b-256 | c67378e06b4777ee2f80356c32a46bd5c659ec68d8a280dd54d843eeb221fd04 |