업로드된 미디어는 다운로드하지만 Google Drive 파일은 다운로드하지 않습니다. URI /v1/media/{+name}?alt=media에서 다운로드가 지원됩니다. Google Drive 파일에서 바이트를 내보내려면 Google Drive에서 files.export 메서드를 참고하세요.
HTTP 요청
GET https://chat.googleapis.com/v1/media/{resourceName=**}
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-11-05(UTC)"],[[["Downloads uploaded media, excluding Google Drive files, using the `/v1/media/{+name}?alt=media` URI."],["To download, use a GET request specifying the media's resource name in the URL path."],["The response provides the file content as bytes, supporting partial downloads via the `Range` header."],["Authorization requires a Chat scope like `chat.bot`, `chat.messages`, or `chat.messages.readonly`."]]],["The core functionality involves downloading uploaded media via a `GET` HTTP request to `/v1/media/{resourceName}`. The `resourceName` path parameter specifies the media to download. The request body must be empty. A successful response returns the file content as bytes. Partial downloads are supported using the `Range` header. Access requires specific OAuth scopes: `chat.bot`, `chat.messages`, or `chat.messages.readonly`. Google Drive files utilize a separate files.export method.\n"]]