Make async POST request Args: path: API endpoint path data: Request payload headers: Request headers Returns: JSON response as dictionary, or None if request failed
(self, path: str, data: Dict[str, Any], headers: Dict[str, str])
| 106 | raise Exception(f"{method.upper()} request failed: {str(e)}") from e |
| 107 | |
| 108 | async def post(self, path: str, data: Dict[str, Any], headers: Dict[str, str]) -> Optional[Dict[str, Any]]: |
| 109 | """ |
| 110 | Make async POST request |
| 111 | |
| 112 | Args: |
| 113 | path: API endpoint path |
| 114 | data: Request payload |
| 115 | headers: Request headers |
| 116 | |
| 117 | Returns: |
| 118 | JSON response as dictionary, or None if request failed |
| 119 | """ |
| 120 | return await self.async_request("post", path, data=data, headers=headers) |
| 121 | |
| 122 | async def get(self, path: str, headers: Dict[str, str]) -> Optional[Dict[str, Any]]: |
| 123 | """ |