Make POST request to DataForSEO API
(self, endpoint: str, data: List[Dict])
| 41 | self.session.headers.update(self.headers) |
| 42 | |
| 43 | def _post(self, endpoint: str, data: List[Dict]) -> Dict: |
| 44 | """Make POST request to DataForSEO API""" |
| 45 | url = f"{self.base_url}{endpoint}" |
| 46 | response = self.session.post(url, json=data) |
| 47 | response.raise_for_status() |
| 48 | return response.json() |
| 49 | |
| 50 | def _first_task(self, response: Dict[str, Any]) -> Optional[Dict[str, Any]]: |
| 51 | tasks = response.get("tasks") |
no outgoing calls
no test coverage detected