Skip to content

🛠️ Python package to update ip address of clash of clans and clash royale api keys with token fetching

Notifications You must be signed in to change notification settings

dashroshan/clashapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClashAPI

Using your developer account's login email and password, update the IP address of all your existing Clash of Clans and/or Clash Royale API keys to the current one, and obtain their tokens.

Getting Started

Installing

pip install clashapi

Usage

import clashapi

# Clash of Clans
tokens = clashapi.coc("email", "password")

# Clash Royale
tokens = clashapi.cr("email", "password")

# tokens is a list of api key token strings that you can now use to access the COC/CR APIs

Quick Example

import requests
import clashapi
tokens = clashapi.coc("email", "password")

response = requests.get(url="https://api.clashofclans.com/v1/clans/%23208GJG2J", headers={"Accept": "application/json", "authorization": f"Bearer {tokens[0]}"})
print(response.json())

About

🛠️ Python package to update ip address of clash of clans and clash royale api keys with token fetching

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages