Parameter Description
설명 | ᆞ파일을 업로드 하여 MMS 전송 시 사용할 파일 키를 발급합니다. |
ᆞ파일은 확장자(jpg/jpeg), 크기(300kbyte 이하) 제한이 있습니다. | |
ᆞ요청 시 파일 업로드 수는 1개로 제한합니다. | |
URL | [POST] api.bizppurio.com/v2/file |
Request
Headers
POST /v1/file HTTP/1.1
Content-Type: multipart/form-data; boundary=5d14-GC42dS9N5BXQAKuhpRfd4VDV54RDDsTJO4
Authorization : Bearer + " " + {accesstoken}
키 | 타입 | 설명 |
Content-type | String | multipart/form-data; boundary=dumytext |
Authorization | String | Bearer + " " + {accesstoken} |
Body
키 | 타입 | 길이 | 필수 | 설명 |
account | text | 20 | Y | 비즈뿌리오 계정 |
sendtime | text | 10 | N |
발송 시간 (unixtime, 최대 30일 이내) * 비즈뿌리오 서버 시간 기준, 한국 표준시(GMT+9) * 발송 시간 기준 +1일 이내 사용 가능 * 미입력시 현재 시간으로 대체 |
--5d14-GC42dS9N5BXQAKuhpRfd4VDV54RDDsTJO4
Content-Disposition: form-data; name="account"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
{비즈뿌리오 계정}
--5d14-GC42dS9N5BXQAKuhpRfd4VDV54RDDsTJO4
Content-Disposition: form-data; name="file"; filename="sample.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
<actual file content, not shown here>
--5d14-GC42dS9N5BXQAKuhpRfd4VDV54RDDsTJO4--
키 | 타입 | 값 |
Content-Disposition | String | form-data; name="account" |
Content-Type | String | text/plain; charset-UTF-8 |
Content-Transfer-Encoding | String | 8bit |
file | File(String) | filename |
name | String | filename |
account | String | 계정ID |
Response
Headers
HTTP/1.1 200 OK
Content-type: application/json
키 | 타입 | 값 |
Content-type | String | application/json; charset=utf-8 |
Body
성공
{
"filekey": "0920msg_123912934949595969"
}
키 | 타입 | 길이 | 필수 | 설명 |
filekey | text | 40 | Y | 파일 키 |
실패
키 | 타입 | 길이 | 필수 | 설명 |
code | text | 5 | Y | 결과 코드 * API 응답 상태 및 결과 코드 참조 |
description | text | 32 | Y | 결과 메시지 |
댓글
댓글 0개
이 문서에는 댓글을 달 수 없습니다.