(
self, project_id: str = "", topic_id: str = "", guid: Optional[str] = None, files: Any = None, data: Any = None
)
| 525 | ) |
| 526 | |
| 527 | def create_document( |
| 528 | self, project_id: str = "", topic_id: str = "", guid: Optional[str] = None, files: Any = None, data: Any = None |
| 529 | ) -> int: |
| 530 | headers = { |
| 531 | "Authorization": f"Bearer {self.foundation_client.get_access_token()}", |
| 532 | "Content-type": "application/octet-stream", |
| 533 | } |
| 534 | |
| 535 | response = requests.post( |
| 536 | f"/projects/{project_id}/topics/{topic_id}/documents", |
| 537 | data=data, |
| 538 | params={"guid": guid}, |
| 539 | files=files, |
| 540 | headers=headers, |
| 541 | ) |
| 542 | |
| 543 | return response.status_code |
| 544 | |
| 545 | def get_document(self, project_id: str = "", topic_id: str = "", document_id: str = "") -> tuple[int, str]: |
| 546 | headers = { |
nothing calls this directly
no test coverage detected