GET/bots/{botId}/attachments/{fileId}

봇의 파일이나 이미지를 다운로드한다.

참고

  • API를 이용한 콘텐츠 다운로드 방법은 파일 업로드/다운로드를 참고한다.
  • 콘텐츠 다운로드 시에는 auto redirect가 off 상태여야 한다.

Authorization

oauth2

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

Scope

bot.message
bot

HTTP Request

GEThttps://www.worksapis.com/v1.0/bots/{botId}/attachments/{fileId}

Path Parameters

ParameterTypeDescription
botId integer 

봇 ID


required
example : 2000001
format : int64 
fileId string 

파일 ID


required
example : jp1.1628695315008671000.1628781715.0.1000001.0.0.0 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 302

location 헤더에 요청에 해당하는 파일 접근 URL이 포함되어 반환된다.