This folder contains a collection of examples for common uses of the comlink-python interface wrapper for the swgoh-comlink API service.
examples/
├── README.md # This file
├── Sync/ # Synchronous client examples (SwgohComlink)
│ └── README.md
└── Async/ # Asynchronous client examples (SwgohComlinkAsync)
└── README.md
Examples using SwgohComlink — the synchronous client. Simple blocking calls suitable for scripts and quick prototyping.
Examples using SwgohComlinkAsync — the asynchronous client. Supports concurrent requests via asyncio.gather() and asyncio.TaskGroup. Includes advanced examples with CLI arguments, retry logic, and debug output.
Each script contains inline comments and sample responses. See the README in each subdirectory for a full listing.
Issues can be reported in GitHub.