Metadata-Version: 2.1
Name: raidtoolkit
Version: 0.0.5
Summary: Client for RaidToolkit API access
Home-page: https://github.com/raid-toolkit/raid-toolkit-sdk
Author: dnchattan
Author-email: dnchattan@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/raid-toolkit/raid-toolkit-sdk/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# RaidToolkit Client

This package provides access to the Raid Toolkit API

## Installation

```sh
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.

```py
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` |



