GET/users/{userId}/mail/{mailId}/attachments/{attachmentId}
조건에 해당하는 메일의 첨부 파일을 다운로드한다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증를 참고한다.
mail
mail.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | 구성원 ID (URL인코딩하여 사용)
required example : me |
| mailId | string | 메일 ID required example : 1 |
| attachmentId | string | 첨부 파일 ID required example : 1 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| data | string | 첨부된 파일 데이터(Base64로 인코딩된 데이터) required minLength : 1 |
| filename | string | 첨부 파일 이름 required minLength : 1 maxLength : 250 |
example
1{2 "data": "dGVzdA==",3 "filename": "file1.jpg"4}Bad Request
Not Found