Client for RaidToolkit API access
Project description
RaidToolkit Client
This package provides access to the Raid Toolkit API
Installation
pip3 install raidtoolkit
Usage
To access APIs from RTK, simply call useRaidToolkitApi
with the API definition you wish to access, and then call whatever APIs you'd like.
import asyncio
from raidtoolkit import RaidToolkitClient
async def main():
client = RaidToolkitClient()
client.connect()
accounts = await client.AccountApi.get_accounts()
print(accounts)
account = await client.AccountApi.get_account_dump(accounts[0]["id"])
print(account)
client.close()
if __name__ == "__main__":
asyncio.run(main())
APIs
AccountApi
API | Description |
---|---|
getAccounts |
Fetch a list of all user accounts. |
getAccountDump(accountId) |
Get an account dump for a given accountId , in RaidExtractor format. |
getArtifacts(accountId) |
Get all artifacts for a given accountId |
getArtifactById(accountId, artifactId) |
Get an artifact by id |
getHeroes(accountId) |
Get all heroes for a given accountId |
getHeroById(accountId, heroId) |
Get a hero by id |
getAllResources(accountId) |
Get all resources for a given accountId |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
raidtoolkit-0.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for raidtoolkit-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08742c7471568b0196ff9a67aecd094697ad45c0d695e5531ecf9083146f7dd4 |
|
MD5 | 5f693df7caaa55a852e5eed28d3c393e |
|
BLAKE2b-256 | 6652d73c4b4084bd8af80c806c81ab57ff99f30e7beba3519df51e4a0aae1195 |