GET/users/{userId}/mail/{mailId}/attachments/{attachmentId}

조건에 해당하는 메일의 첨부 파일을 다운로드한다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증를 참고한다.

Scope

mail
mail.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/users/{userId}/mail/{mailId}/attachments/{attachmentId}

Path Parameters

ParameterTypeDescription
userId string 

구성원 ID (URL인코딩하여 사용)

  • User ID
  • Login ID(email)
  • 자기자신(me)

required
example : me 
mailId string 

메일 ID


required
example : 1 
attachmentId string 

첨부 파일 ID


required
example : 1 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
data string 

첨부된 파일 데이터(Base64로 인코딩된 데이터)
Admin > 서비스 > 메일 > 첨부 가능 용량까지 첨부 가능(최대 25MB)


required
minLength : 1 
filename string 

첨부 파일 이름


required
minLength : 1
maxLength : 250 

Response Example

example

1{2  "data": "dGVzdA==",3  "filename": "file1.jpg"4}

HTTP 400

Bad Request

HTTP 404

Not Found