fetch_collection
fetch_collection
Service for fetching a single collection.
Classes
FetchCollectionRunner
Bases: BaseRunner[Dict[str, Any]]
Runner for fetching a Collection from MyETM by its ID.
GET /api/v3/collections/{collection_id}
Functions
run
staticmethod
Fetch a single Collection by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
BaseClient
|
HTTP client |
required |
collection_id
|
int
|
ID of the collection to fetch |
required |
**kwargs
|
Any
|
Additional arguments passed to the request |
{}
|
Returns:
| Type | Description |
|---|---|
ServiceResult[Dict[str, Any]]
|
ServiceResult with Collection data |
Example usage
result = FetchCollectionRunner.run( client=client, collection_id=123 ) if result.success: print(f"Collection: {result.data['title']}")