11 lines
341 B
Python
11 lines
341 B
Python
from typing import Any, Dict, Optional
|
|
from .base import ApiClient
|
|
|
|
|
|
class ProwlarrClient(ApiClient):
|
|
async def get_health(self) -> Optional[Dict[str, Any]]:
|
|
return await self.get("/api/v1/health")
|
|
|
|
async def search(self, query: str) -> Optional[Any]:
|
|
return await self.get("/api/v1/search", params={"query": query})
|