GET/users/{userId}/drive/files/{fileId}/download

내 드라이브의 파일을 다운로드한다.

참고
API를 이용한 콘텐츠 다운로드 방법은 파일 업로드/다운로드를 참고한다.

Authorization

oauth2

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

Scope

file
file.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/users/{userId}/drive/files/{fileId}/download

Path Parameters

ParameterTypeDescription
userId string 

사용자 ID

  • 메일
  • 리소스 ID
  • 외부 키 "externalKey:{externalKey}" 형태
  • me

required
example : me 
fileId string 

파일 ID


required
example : NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA 

Query Parameters

ParameterTypeDescription
thumbnailType string 

파일의 섬네일이 필요한 경우에 사용한다.

  • SMALL: 작은 섬네일(가능한 fileType: VIDEO, AUDIO)
  • MEDIUM: 중간 크기 섬네일(가능한 fileType: VIDEO, AUDIO, IMAGE, DOC)
  • LARGE: 큰 섬네일(가능한 fileType: IMAGE, DOC)

example : SMALL 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 302

location 헤더에 파일 접근 URL이 포함되어 반환된다.