이미지 업로드
Endpoint
[POST] API URL 정보
Request (Json)
Header
Field Name | Type | Required | Description |
---|---|---|---|
Content-type | String | Y | multipart/form-data |
HT-Client-Id | String | Y | 고객센터에서 발급 받은 key |
HT-Client-Secret | String | Y | 고객센터에서 발급 받은 token |
Body
Field Name | Type (Length) | Required | Description | Default |
---|---|---|---|---|
sender_key | String | Y | 발신프로필 키 | |
image | binary | Y | 업로드할 이미지 파일 | |
image_type | String | Y / N | 링크버튼 전용 이미지 [참고사항] ( image_type = link ) |
주의 사항
Example
REST API Sample
curl --location --request POST 'https://patch-kakao-api.happytalk.io/v1/image/upload' \
--header 'Content-Type: multipart/form-data' \
--header 'HT-Client-Id: 고객센터에서 발급받은 client-id' \
--header 'HT-Client-Secret: 고객센터에서 발급받은 client-secret' \
--form 'sender_key="4c9591f37822ae1ed5b572fh278sf08b1e2d922cea"' \
--form 'image=@"/C:/Users/user/Downloads/테스트 이미지.png"'
curl --location --request POST 'https://kakao-api.happytalk.io/v1/image/upload' \
--header 'Content-Type: multipart/form-data' \
--header 'HT-Client-Id: 고객센터에서 발급받은 client-id' \
--header 'HT-Client-Secret: 고객센터에서 발급받은 client-secret' \
--form 'sender_key="4c9591f37822ae1ed5b572fh278sf08b1e2d922cea"' \
--form 'image=@"/C:/Users/user/Downloads/테스트 이미지.png"'
Response (Json)
Parameter
Field Name | Type | Description |
---|---|---|
code | String | 결과 코드 |