--- src/main/java/itn/let/uat/uia/web/EgovMypageRESTAPIController.java
+++ src/main/java/itn/let/uat/uia/web/EgovMypageRESTAPIController.java
... | ... | @@ -250,11 +250,6 @@ |
| 250 | 250 |
return "web/api/apiSpec"; |
| 251 | 251 |
} |
| 252 | 252 |
|
| 253 |
- /** |
|
| 254 |
- * @param model |
|
| 255 |
- * @return |
|
| 256 |
- * @throws Exception |
|
| 257 |
- */ |
|
| 258 | 253 |
@RequestMapping(value="/web/api/apiAtSpec.do") |
| 259 | 254 |
public String apiAtSpec(ModelMap model) |
| 260 | 255 |
throws Exception {
|
... | ... | @@ -265,7 +260,8 @@ |
| 265 | 260 |
} |
| 266 | 261 |
model.addAttribute("loginVO", loginVO);
|
| 267 | 262 |
|
| 268 |
- return "web/api/at/apiSpec"; |
|
| 263 |
+// return "web/api/apiAtSpec"; |
|
| 264 |
+ return "web/api/apiAtSpec"; |
|
| 269 | 265 |
} |
| 270 | 266 |
|
| 271 | 267 |
/** |
... | ... | @@ -273,6 +269,24 @@ |
| 273 | 269 |
* @return |
| 274 | 270 |
* @throws Exception |
| 275 | 271 |
*/ |
| 272 |
+ /* @RequestMapping(value="/web/api/apiAtSpec.do") |
|
| 273 |
+ public String apiAtSpec(ModelMap model) |
|
| 274 |
+ throws Exception {
|
|
| 275 |
+ LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null; |
|
| 276 |
+ |
|
| 277 |
+ if(loginVO == null) {
|
|
| 278 |
+ return "redirect:/web/user/login/login.do"; |
|
| 279 |
+ } |
|
| 280 |
+ model.addAttribute("loginVO", loginVO);
|
|
| 281 |
+ |
|
| 282 |
+ return "web/api/at/apiSpec"; |
|
| 283 |
+ }*/ |
|
| 284 |
+ |
|
| 285 |
+ /** |
|
| 286 |
+ * @param model |
|
| 287 |
+ * @return |
|
| 288 |
+ * @throws Exception |
|
| 289 |
+ */ |
|
| 276 | 290 |
@RequestMapping(value="/web/api/examDown.do") |
| 277 | 291 |
public String examDown(ModelMap model) |
| 278 | 292 |
throws Exception {
|
--- src/main/webapp/WEB-INF/jsp/layout/include/defaultResource.jsp
+++ src/main/webapp/WEB-INF/jsp/layout/include/defaultResource.jsp
... | ... | @@ -36,6 +36,11 @@ |
| 36 | 36 |
<link rel="stylesheet" href="/publish/js/datepicker/classic.css"> |
| 37 | 37 |
<link rel="stylesheet" href="/publish/js/datepicker/classic.date.css"> |
| 38 | 38 |
|
| 39 |
+ |
|
| 40 |
+ |
|
| 41 |
+ <link rel="stylesheet" href="/publish/js/highlight/styles/default.min.css"> |
|
| 42 |
+ <link rel="stylesheet" href="/publish/js/highlight/styles/arta.css"> |
|
| 43 |
+ |
|
| 39 | 44 |
<script type="text/javascript" src="/publish/js/jquery-3.5.0.js"></script> |
| 40 | 45 |
<script type="text/javascript" src="/publish/js/jquery.mCustomScrollbar.concat.min.js"></script> |
| 41 | 46 |
<script type="text/javascript" src="/publish/js/common.js?date=202507210001"></script> |
... | ... | @@ -80,6 +85,9 @@ |
| 80 | 85 |
|
| 81 | 86 |
<!-- Uncaught TypeError: e.widget is not a function로 인해 가장 마지막에 선언_이준호_220510 --> |
| 82 | 87 |
<script type="text/javascript" src="/dist/js/tabulator/jquery_wrapper.js"></script> |
| 88 |
+ |
|
| 89 |
+ <script type="text/javascript" src="/publish/js/highlight/highlight.min.js"></script> |
|
| 90 |
+ |
|
| 83 | 91 |
<%-- 20240110 matomo 사용 안함으로 인하여 주석처리 함 |
| 84 | 92 |
|
| 85 | 93 |
<c:if test="${fn:contains(pageContext.request.requestURL, 'munjaon.co.kr')}">
|
+++ src/main/webapp/WEB-INF/jsp/web/api/apiAtSpec.jsp
... | ... | @@ -0,0 +1,178 @@ |
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 4 | +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
| 5 | + | |
| 6 | +<head> | |
| 7 | +</head> | |
| 8 | +<script language=javascript> | |
| 9 | +$(document).ready(function(){ | |
| 10 | + | |
| 11 | + // 현재 url 추출 | |
| 12 | +/* var url = window.location.pathname; | |
| 13 | + // 현재 url에서 uri만 추출 | |
| 14 | + var lastPart = url.split('/').pop(); | |
| 15 | + | |
| 16 | + | |
| 17 | + $('.tabType4 .tab').each(function(index) { | |
| 18 | + var $btn = $(this).children("button"); | |
| 19 | + var id = $btn.attr("id"); | |
| 20 | + | |
| 21 | + // 개발가이드 그룹 | |
| 22 | + if (id === 'apiSpec' && /api.*Spec\.do$/.test(lastPart)) { | |
| 23 | + $(this).addClass('active'); | |
| 24 | + } | |
| 25 | + // 나머지 기본 처리 | |
| 26 | + else if (lastPart.indexOf(id) > -1) { | |
| 27 | + $(this).addClass('active'); | |
| 28 | + } | |
| 29 | + }); */ | |
| 30 | + | |
| 31 | + | |
| 32 | +}); | |
| 33 | + | |
| 34 | + hljs.highlightAll(); | |
| 35 | +</script> | |
| 36 | +<style> | |
| 37 | + | |
| 38 | + .padding_add > p | |
| 39 | + { | |
| 40 | + padding-left: 30px; | |
| 41 | + padding-bottom: 8px; | |
| 42 | + } | |
| 43 | + | |
| 44 | + .padding_add > div > p | |
| 45 | + { | |
| 46 | + padding-left: 60px; | |
| 47 | + padding-bottom: 8px; | |
| 48 | + } | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | +</style> | |
| 53 | + | |
| 54 | +<!-- content 영역 --> | |
| 55 | +<div class="inner"> | |
| 56 | + <!-- send top --> | |
| 57 | + <div class="send_top"> | |
| 58 | + | |
| 59 | + <c:import url="./top_tepMenu.jsp" /><!--// tab button --> | |
| 60 | + | |
| 61 | + <!-- tab button --> | |
| 62 | + <div class="api_guide_cont current"> | |
| 63 | + <div class="heading"> | |
| 64 | + <h2>REST API 개발 가이드</h2> | |
| 65 | + </div> | |
| 66 | + | |
| 67 | + | |
| 68 | + <!--// sub tab button --> | |
| 69 | + <c:import url="./top_subTepMenu.jsp" /> | |
| 70 | + | |
| 71 | + <!-- REST API 개발 가이드 > 문자 --> | |
| 72 | + <%-- <div class="api_guide current" id="tab5_1"> | |
| 73 | + <div class="list_tab_wrap2 type3"> | |
| 74 | + <!-- tab button --> | |
| 75 | + <ul class="list_tab"> | |
| 76 | + <li class="tab active"><button type="button" onclick="TabType1(this,'1')">문자보내기</button></li> | |
| 77 | + <li class="tab"><button type="button" onclick="TabType1(this,'2')" id="btnEstimate">문자보내기(대량)</button></li> | |
| 78 | + <li class="tab"><button type="button" onclick="TabType1(this,'3')" id="btnEstimate3">전송내역조회</button></li> | |
| 79 | + <li class="tab"><button type="button" onclick="TabType1(this,'4')" id="btnEstimate4">전송결과조회(상세)</button></li> | |
| 80 | + <li class="tab"><button type="button" onclick="TabType1(this,'5')" id="btnEstimate5">발송가능건수</button></li> | |
| 81 | + </ul><!--// tab button --> | |
| 82 | + </div> | |
| 83 | + | |
| 84 | + <!-- 문자보내기 --> | |
| 85 | + <div class="fee_cont current" id="tab1_1"> | |
| 86 | + <c:import url="./msg/apiSpec_tab1.jsp" /> | |
| 87 | + </div> | |
| 88 | + | |
| 89 | + <!-- 문자보내기(대량) --> | |
| 90 | + <div class="fee_cont" id="tab1_2"> | |
| 91 | + <c:import url="./msg/apiSpec_tab2.jsp" /> | |
| 92 | + </div> | |
| 93 | + | |
| 94 | + <!-- 전송내역조회 --> | |
| 95 | + <div class="fee_cont" id="tab1_3"> | |
| 96 | + <c:import url="./msg/apiSpec_tab3.jsp" /> | |
| 97 | + </div> | |
| 98 | + <!-- 전송결과조회(상세) --> | |
| 99 | + <div class="fee_cont" id="tab1_4"> | |
| 100 | + <c:import url="./msg/apiSpec_tab4.jsp" /> | |
| 101 | + </div> | |
| 102 | + <!-- 발송가능건수 --> | |
| 103 | + <div class="fee_cont" id="tab1_5"> | |
| 104 | + <c:import url="./msg/apiSpec_tab5.jsp" /> | |
| 105 | + </div> | |
| 106 | + </div> --%> | |
| 107 | + <!-- //REST API 개발 가이드 > 문자 --> | |
| 108 | + | |
| 109 | + <!-- REST API 개발 가이드 > 알림톡 --> | |
| 110 | + <div class="api_guide current" id="tab5_1"> | |
| 111 | + <div class="list_tab_wrap2 type3"> | |
| 112 | + <!-- tab button --> | |
| 113 | + <ul class="list_tab"> | |
| 114 | + | |
| 115 | + <li class="tab active"><button type="button" onclick="TabType1(this,'6');">채널 ID 조회</button></li> | |
| 116 | + <li class="tab"><button type="button" onclick="TabType1(this,'7');">템플릿 ID 조회</button></li> | |
| 117 | + <li class="tab"><button type="button" onclick="TabType1(this,'8');">템플릿상세조회</button></li> | |
| 118 | + <li class="tab"><button type="button" onclick="TabType1(this,'9');">알림톡 보내기</button></li> | |
| 119 | + <li class="tab"><button type="button" onclick="TabType1(this,'11');">전송내역조회</button></li> | |
| 120 | + <li class="tab"><button type="button" onclick="TabType1(this,'12');">전송내역조회(상세)</button></li> | |
| 121 | + <li class="tab"><button type="button" onclick="TabType1(this,'13');">발송가능건수</button></li> | |
| 122 | + | |
| 123 | + </ul><!--// tab button --> | |
| 124 | + </div> | |
| 125 | + | |
| 126 | + <!-- 채널 ID 조회 --> | |
| 127 | + <div class="fee_cont current" id="tab1_6"> | |
| 128 | + <c:import url="./at/apiSpec_tab1.jsp" /> | |
| 129 | + </div> | |
| 130 | + | |
| 131 | + <!-- 템플릿 ID 조회 --> | |
| 132 | + <div class="fee_cont" id="tab1_7"> | |
| 133 | + <c:import url="./at/apiSpec_tab2.jsp" /> | |
| 134 | + </div> | |
| 135 | + | |
| 136 | + <!-- 템플릿상세조회 --> | |
| 137 | + <div class="fee_cont" id="tab1_8"> | |
| 138 | + <c:import url="./at/apiSpec_tab3.jsp" /> | |
| 139 | + </div> | |
| 140 | + | |
| 141 | + <!-- 알림톡 보내기 --> | |
| 142 | + <div class="fee_cont" id="tab1_9"> | |
| 143 | + <c:import url="./at/apiSpec_tab4.jsp" /> | |
| 144 | + </div> | |
| 145 | + | |
| 146 | + <!-- 전송내역조회 --> | |
| 147 | + <div class="fee_cont" id="tab1_11"> | |
| 148 | + <c:import url="./at/apiSpec_tab6.jsp" /> | |
| 149 | + </div> | |
| 150 | + | |
| 151 | + <!-- 전송내역조회(상세) --> | |
| 152 | + <div class="fee_cont" id="tab1_12"> | |
| 153 | + <c:import url="./at/apiSpec_tab7.jsp" /> | |
| 154 | + </div> | |
| 155 | + | |
| 156 | + <!-- 발송가능건수 --> | |
| 157 | + <div class="fee_cont" id="tab1_13"> | |
| 158 | + <c:import url="./at/apiSpec_tab8.jsp" /> | |
| 159 | + </div> | |
| 160 | + </div> | |
| 161 | + <!-- //REST API 개발 가이드 > 알림톡 --> | |
| 162 | + | |
| 163 | + <!-- REST API 개발 가이드 > 친구톡 --> | |
| 164 | + <!-- <div class="api_guide kakao" id="tab5_3"> | |
| 165 | + <div class="list_tab_wrap2 type3"> | |
| 166 | + <ul class="list_tab"> | |
| 167 | + <li class="tab active"><button type="button" onclick="TabType2(this,'6');">채널 ID 조회</button></li> | |
| 168 | + <li class="tab"><button type="button" onclick="TabType2(this,'7');">친구톡 보내기</button></li> | |
| 169 | + <li class="tab"><button type="button" onclick="TabType2(this,'8');">전송내역조회</button></li> | |
| 170 | + <li class="tab"><button type="button" onclick="TabType2(this,'9');">전송내역조회(상세)</button></li> | |
| 171 | + <li class="tab"><button type="button" onclick="TabType2(this,'10');">발송가능건수</button></li> | |
| 172 | + </ul> | |
| 173 | + </div> | |
| 174 | + </div> --> | |
| 175 | + <!-- //REST API 개발 가이드 > 친구톡 --> | |
| 176 | + </div> | |
| 177 | + </div><!--// send top --> | |
| 178 | +</div> |
--- src/main/webapp/WEB-INF/jsp/web/api/apiSpec.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/apiSpec.jsp
... | ... | @@ -2,11 +2,21 @@ |
| 2 | 2 |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
| 3 | 3 |
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
| 4 | 4 |
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> |
| 5 |
+ |
|
| 6 |
+<head> |
|
| 7 |
+</head> |
|
| 5 | 8 |
<script language=javascript> |
| 6 | 9 |
$(document).ready(function(){
|
| 7 | 10 |
|
| 11 |
+ $('.topBtn').click(function(){
|
|
| 12 |
+ |
|
| 13 |
+ location.href=$(this).data('info');
|
|
| 14 |
+ |
|
| 15 |
+ }); |
|
| 16 |
+ |
|
| 8 | 17 |
}); |
| 9 | 18 |
|
| 19 |
+ hljs.highlightAll(); |
|
| 10 | 20 |
</script> |
| 11 | 21 |
<style> |
| 12 | 22 |
|
... | ... | @@ -25,6 +35,7 @@ |
| 25 | 35 |
|
| 26 | 36 |
|
| 27 | 37 |
</style> |
| 38 |
+ |
|
| 28 | 39 |
<!-- content 영역 --> |
| 29 | 40 |
<div class="inner"> |
| 30 | 41 |
<!-- send top --> |
... | ... | @@ -38,14 +49,8 @@ |
| 38 | 49 |
<h2>REST API 개발 가이드</h2> |
| 39 | 50 |
</div> |
| 40 | 51 |
|
| 41 |
- <!--사용안내 내용--> |
|
| 42 |
- <div class="pay_tab_wrap"> |
|
| 43 |
- <ul class="tabType1"> |
|
| 44 |
- <li class="tab active"><button type="button" onclick="TabType5(this,'1');TabType2(this,'1');$('.list_tab li:nth-child(1)').addClass('active').siblings().removeClass('active');">문자</button></li>
|
|
| 45 |
- <li class="tab"><button type="button" onclick="TabType5(this,'2');TabType2(this,'6');$('.list_tab li:nth-child(1)').addClass('active').siblings().removeClass('active');">알림톡</button></li>
|
|
| 46 |
- <li class="tab"><button type="button" onclick="TabType5(this,'3');TabType2(this,'13');$('.list_tab li:nth-child(1)').addClass('active').siblings().removeClass('active');">친구톡</button></li>
|
|
| 47 |
- </ul> |
|
| 48 |
- </div> |
|
| 52 |
+ <!--// sub tab button --> |
|
| 53 |
+ <c:import url="./top_subTepMenu.jsp" /> |
|
| 49 | 54 |
|
| 50 | 55 |
<!-- REST API 개발 가이드 > 문자 --> |
| 51 | 56 |
<div class="api_guide current" id="tab5_1"> |
... | ... | @@ -61,14 +66,10 @@ |
| 61 | 66 |
</div> |
| 62 | 67 |
|
| 63 | 68 |
<!-- 문자보내기 --> |
| 64 |
- <!-- 문자보내기 --> |
|
| 65 |
- <!-- 문자보내기 --> |
|
| 66 | 69 |
<div class="fee_cont current" id="tab1_1"> |
| 67 | 70 |
<c:import url="./msg/apiSpec_tab1.jsp" /> |
| 68 | 71 |
</div> |
| 69 | 72 |
|
| 70 |
- <!-- 문자보내기(대량) --> |
|
| 71 |
- <!-- 문자보내기(대량) --> |
|
| 72 | 73 |
<!-- 문자보내기(대량) --> |
| 73 | 74 |
<div class="fee_cont" id="tab1_2"> |
| 74 | 75 |
<c:import url="./msg/apiSpec_tab2.jsp" /> |
--- src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab1.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab1.jsp
... | ... | @@ -7,210 +7,233 @@ |
| 7 | 7 |
<!-- <li>- 발신번호는 문자온 사이트를 통해 사전등록 후 이용하실 수 있습니다.(마이페이지-발신번호 관리 메뉴 이용)</li> --> |
| 8 | 8 |
<!-- <li>- 문자 내용이 "90byte"를 초과하는 경우 장문(LMS)으로 자동 전환됩니다.</li> --> |
| 9 | 9 |
</ul> |
| 10 |
- |
|
| 11 | 10 |
<div class="re_cont"> |
| 12 |
- <!--Request--> |
|
| 13 |
- <div class="req_title">Request</div> |
|
| 14 |
- <div class="box"> |
|
| 15 |
- <div class="text"> |
|
| 16 |
- <h4>Request</h4> |
|
| 17 |
- <table> |
|
| 18 |
- <caption>API Request Http Method, 프로토콜, HOST, Service Port |
|
| 19 |
- 정보 테이블</caption> |
|
| 20 |
- <colgroup> |
|
| 21 |
- <col style="width: 20%;"> |
|
| 22 |
- <col style="width: 80%;"> |
|
| 23 |
- </colgroup> |
|
| 24 |
- <tr> |
|
| 25 |
- <th>Http Method</th> |
|
| 26 |
- <td>POST</td> |
|
| 27 |
- </tr> |
|
| 28 |
- <tr> |
|
| 29 |
- <th>프로토콜</th> |
|
| 30 |
- <td>HTTP/1.1</td> |
|
| 31 |
- </tr> |
|
| 32 |
- <tr> |
|
| 33 |
- <th>HOST</th> |
|
| 34 |
- <td>api.munjaon.co.kr</td> |
|
| 35 |
- </tr> |
|
| 36 |
- <tr> |
|
| 37 |
- <th>Service Port</th> |
|
| 38 |
- <td>443</td> |
|
| 39 |
- </tr> |
|
| 40 |
- </table> |
|
| 41 |
- </div> |
|
| 42 |
- </div> |
|
| 43 |
- <div class="type_table"> |
|
| 44 |
- <table> |
|
| 45 |
- <caption>문자발송 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> |
|
| 46 |
- <colgroup> |
|
| 47 |
- <col style="width: 20%;"> |
|
| 48 |
- <col style="width: 45%;"> |
|
| 49 |
- <col style="width: 25%"> |
|
| 50 |
- <col style="width: 10%"> |
|
| 51 |
- </colgroup> |
|
| 52 |
- <thead> |
|
| 53 |
- <tr> |
|
| 54 |
- <th>키</th> |
|
| 55 |
- <th>설명</th> |
|
| 56 |
- <th>타입</th> |
|
| 57 |
- <th>필수</th> |
|
| 58 |
- </tr> |
|
| 59 |
- </thead> |
|
| 60 |
- <tbody> |
|
| 61 |
- <tr> |
|
| 62 |
- <td><span class="font_b">mberId</span></td> |
|
| 63 |
- <td>사용자 ID</td> |
|
| 64 |
- <td>String</td> |
|
| 65 |
- <td><span class="select_o">O</span></td> |
|
| 66 |
- </tr> |
|
| 67 |
- <tr> |
|
| 68 |
- <td><span class="font_b">accessKey</span></td> |
|
| 69 |
- <td>인증용 API Key</td> |
|
| 70 |
- <td>String</td> |
|
| 71 |
- <td><span class="select_o">O</span></td> |
|
| 72 |
- </tr> |
|
| 73 |
- </tbody> |
|
| 74 |
- </table> |
|
| 75 |
- <div class="table_info"> |
|
| 76 |
- <p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p> |
|
| 77 |
- <p>※ 문자 텍스트 용량(byte) : 한글 1자당 2byte, 영문/숫자 1자당 1byte</p> |
|
| 78 |
- </div> |
|
| 79 |
- </div> |
|
| 80 |
- <div class="box"> |
|
| 81 |
- <div class="title">[Example]</div> |
|
| 82 |
- <div class="code_view"> |
|
| 83 |
- <p>{</p> |
|
| 84 |
- <div class="indent"> |
|
| 85 |
- <p> |
|
| 86 |
- <span>"mberId"</span>:"홍길동" |
|
| 87 |
- </p> |
|
| 88 |
- <p> |
|
| 89 |
- ,<span>"accessKey"</span>:"XXXXXXXXXXXXXX414050694b953" |
|
| 90 |
- </p> |
|
| 11 |
+ <!-- Request --> |
|
| 12 |
+ <div class="req_title">Request</div> |
|
| 13 |
+ <div class="box"> |
|
| 14 |
+ <div class="text"> |
|
| 15 |
+ <h4>Request</h4> |
|
| 16 |
+ <table> |
|
| 17 |
+ <caption>API Request Http Method, 프로토콜, HOST, Service Port, Endpoint 정보 테이블</caption> |
|
| 18 |
+ <colgroup> |
|
| 19 |
+ <col style="width:20%;"> |
|
| 20 |
+ <col style="width:80%;"> |
|
| 21 |
+ </colgroup> |
|
| 22 |
+ <tr> |
|
| 23 |
+ <th>Http Method</th> |
|
| 24 |
+ <td>POST</td> |
|
| 25 |
+ </tr> |
|
| 26 |
+ <tr> |
|
| 27 |
+ <th>프로토콜</th> |
|
| 28 |
+ <td>HTTPS/1.1</td> |
|
| 29 |
+ </tr> |
|
| 30 |
+ <tr> |
|
| 31 |
+ <th>HOST</th> |
|
| 32 |
+ <td>api.munjaon.co.kr</td> |
|
| 33 |
+ </tr> |
|
| 34 |
+ <tr> |
|
| 35 |
+ <th>Service Port</th> |
|
| 36 |
+ <td>443</td> |
|
| 37 |
+ </tr> |
|
| 38 |
+ <tr> |
|
| 39 |
+ <th>Endpoint</th> |
|
| 40 |
+ <td>/api/kakao/inqry/chnlId</td> |
|
| 41 |
+ </tr> |
|
| 42 |
+ </table> |
|
| 91 | 43 |
</div> |
| 92 |
- <p class="l_code">}</p> |
|
| 93 | 44 |
</div> |
| 94 |
- </div> |
|
| 95 |
- <!--// Request--> |
|
| 96 |
- <!-- Response--> |
|
| 97 |
- <div class="res_title">Response</div> |
|
| 98 |
- <div class="type_table"> |
|
| 99 |
- <table> |
|
| 100 |
- <caption>문자발송 API Response 키 종류 및 설명, 타입 테이블</caption> |
|
| 101 |
- <colgroup> |
|
| 102 |
- <col style="width: 20%;"> |
|
| 103 |
- <col style="width: 60%;"> |
|
| 104 |
- <col style="width: 20%;"> |
|
| 105 |
- </colgroup> |
|
| 106 |
- <thead> |
|
| 107 |
- <tr> |
|
| 108 |
- <th>키</th> |
|
| 109 |
- <th>설명</th> |
|
| 110 |
- <th>타입</th> |
|
| 111 |
- </tr> |
|
| 112 |
- </thead> |
|
| 113 |
- <tbody> |
|
| 114 |
- <tr> |
|
| 115 |
- <td><span class="font_b">resultCode</span></td> |
|
| 116 |
- <td>성공 여부 ("0" 이면 성공, 그 외는 실패)</td>
|
|
| 117 |
- <td>String</td> |
|
| 118 |
- </tr> |
|
| 119 |
- <tr> |
|
| 120 |
- <td><span class="font_b">data</span></td> |
|
| 121 |
- <td>응답 결과 객체 (성공 시 배열, 실패 시 메시지)</td> |
|
| 122 |
- <td>Array<Object></td> |
|
| 123 |
- </tr> |
|
| 124 |
- <tr> |
|
| 125 |
- <td><span class="font_b">data[].userId</span></td> |
|
| 126 |
- <td>사용자 ID</td> |
|
| 127 |
- <td>String</td> |
|
| 128 |
- </tr> |
|
| 129 |
- <tr> |
|
| 130 |
- <td><span class="font_b">data[].senderKey</span></td> |
|
| 131 |
- <td>발신자 키</td> |
|
| 132 |
- <td>String</td> |
|
| 133 |
- </tr> |
|
| 134 |
- <tr> |
|
| 135 |
- <td><span class="font_b">data[].phoneNumber</span></td> |
|
| 136 |
- <td>수신자 전화번호</td> |
|
| 137 |
- <td>String</td> |
|
| 138 |
- </tr> |
|
| 139 |
- <tr> |
|
| 140 |
- <td><span class="font_b">data[].yellowId</span></td> |
|
| 141 |
- <td>카카오톡 채널 ID</td> |
|
| 142 |
- <td>String</td> |
|
| 143 |
- </tr> |
|
| 144 |
- <tr> |
|
| 145 |
- <td><span class="font_b">data[].firstRegistPnttm</span></td> |
|
| 146 |
- <td>최초 등록 시각 (yyyy‑MM‑dd HH:mm:ss)</td> |
|
| 147 |
- <td>String</td> |
|
| 148 |
- </tr> |
|
| 149 |
- <tr> |
|
| 150 |
- <td><span class="font_b">data[].firstRegisterId</span></td> |
|
| 151 |
- <td>최초 등록자 ID</td> |
|
| 152 |
- <td>String</td> |
|
| 153 |
- </tr> |
|
| 154 |
- </tbody> |
|
| 155 |
- </table> |
|
| 156 | 45 |
|
| 157 |
- <div class="table_info"> |
|
| 158 |
- <p>※ JSON 객체로 응답합니다.</p> |
|
| 159 |
- </div> |
|
| 160 |
- </div> |
|
| 161 |
- <div class="box"> |
|
| 162 |
- <div class="title_t1"> |
|
| 163 |
- <span class="ex">[Example]</span><span class="ex_success">O 성공 |
|
| 164 |
- 예시</span> |
|
| 165 |
- </div> |
|
| 166 |
- <div class="code_view"> |
|
| 167 |
- <p>{</p> |
|
| 168 |
- <div class="indent"> |
|
| 169 |
- <p> |
|
| 170 |
- <span>"resultCode"</span>:"0" |
|
| 171 |
- </p> |
|
| 172 |
- <p> |
|
| 173 |
- ,<span>"data"</span>{ |
|
| 174 |
- </p> |
|
| 175 |
- <div class="indent_t1"> |
|
| 176 |
- <p> |
|
| 177 |
- ,<span>"senderKey"</span>:"6691434xxxxxxxxxxxxxxxxxxxxxxxxx" |
|
| 178 |
- </p> |
|
| 179 |
- <p> |
|
| 180 |
- ,<span>"phoneNumber"</span>:"010xxxxxxxx" |
|
| 181 |
- </p> |
|
| 182 |
- <p> |
|
| 183 |
- ,<span>"yellowId"</span>:"@ID" |
|
| 184 |
- </p> |
|
| 185 |
- <p> |
|
| 186 |
- ,<span>"firstRegistPnttm"</span>:"2025-10-05 18:08:58" |
|
| 187 |
- </p> |
|
| 188 |
- <p> |
|
| 189 |
- ,<span>"firstRegisterId"</span>:"userId" |
|
| 190 |
- </p> |
|
| 191 |
- </div> |
|
| 192 |
- <p>}</p> |
|
| 46 |
+ <div class="type_table"> |
|
| 47 |
+ <table> |
|
| 48 |
+ <caption>채널ID 조회 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> |
|
| 49 |
+ <colgroup> |
|
| 50 |
+ <col style="width:20%;"> |
|
| 51 |
+ <col style="width:45%;"> |
|
| 52 |
+ <col style="width:25%"> |
|
| 53 |
+ <col style="width:10%"> |
|
| 54 |
+ </colgroup> |
|
| 55 |
+ <thead> |
|
| 56 |
+ <tr> |
|
| 57 |
+ <th>키</th> |
|
| 58 |
+ <th>설명</th> |
|
| 59 |
+ <th>타입</th> |
|
| 60 |
+ <th>필수</th> |
|
| 61 |
+ </tr> |
|
| 62 |
+ </thead> |
|
| 63 |
+ <tbody> |
|
| 64 |
+ <tr> |
|
| 65 |
+ <td><span class="font_b">mberId</span></td> |
|
| 66 |
+ <td>사용자 ID</td> |
|
| 67 |
+ <td>String</td> |
|
| 68 |
+ <td><span class="select_o">O</span></td> |
|
| 69 |
+ </tr> |
|
| 70 |
+ <tr> |
|
| 71 |
+ <td><span class="font_b">accessKey</span></td> |
|
| 72 |
+ <td>인증용 API Key</td> |
|
| 73 |
+ <td>String</td> |
|
| 74 |
+ <td><span class="select_o">O</span></td> |
|
| 75 |
+ </tr> |
|
| 76 |
+ <tr> |
|
| 77 |
+ <td><span class="font_b">test_yn</span></td> |
|
| 78 |
+ <td>테스트 데이터 여부 (YS: 성공 테스트, YF: 실패 테스트)</td> |
|
| 79 |
+ <td>String</td> |
|
| 80 |
+ <td><span class="select_x">X</span></td> |
|
| 81 |
+ </tr> |
|
| 82 |
+ </tbody> |
|
| 83 |
+ </table> |
|
| 84 |
+ <div class="table_info"> |
|
| 85 |
+ <p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p> |
|
| 86 |
+ <p>※ Content-Type: application/json</p> |
|
| 193 | 87 |
</div> |
| 194 |
- <p class="l_code">}</p> |
|
| 195 | 88 |
</div> |
| 196 |
- </div> |
|
| 197 |
- <div class="box"> |
|
| 198 |
- <div class="title_t1"> |
|
| 199 |
- <span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span> |
|
| 200 |
- </div> |
|
| 201 |
- <div class="code_view"> |
|
| 202 |
- <p>{</p> |
|
| 203 |
- <div class="indent"> |
|
| 204 |
- <p> |
|
| 205 |
- <span>"resultCode"</span>:"401" |
|
| 206 |
- </p> |
|
| 207 |
- <p> |
|
| 208 |
- ,<span>"message"</span>:"Unauthorized" |
|
| 209 |
- </p> |
|
| 89 |
+ |
|
| 90 |
+ <div class="box"> |
|
| 91 |
+ <div class="title">[Example]</div> |
|
| 92 |
+ <div class="code_view"> |
|
| 93 |
+ <pre> |
|
| 94 |
+ <code class="language-json"> |
|
| 95 |
+{
|
|
| 96 |
+ |
|
| 97 |
+ "mberId": "문자온", |
|
| 98 |
+ |
|
| 99 |
+ "accessKey": "XXXXXXXXXXXXXXXXXXXXbaa01d8d91", |
|
| 100 |
+ |
|
| 101 |
+ "test_yn": "" |
|
| 102 |
+} |
|
| 103 |
+ </code> |
|
| 104 |
+ </pre> |
|
| 210 | 105 |
</div> |
| 211 |
- <p class="l_code">}</p> |
|
| 212 | 106 |
</div> |
| 107 |
+ <!-- // Request --> |
|
| 108 |
+ |
|
| 109 |
+ <!-- Response --> |
|
| 110 |
+ <div class="res_title">Response</div> |
|
| 111 |
+ <div class="type_table"> |
|
| 112 |
+ <table> |
|
| 113 |
+ <caption>채널ID 조회 API Response 키 종류 및 설명, 타입 테이블</caption> |
|
| 114 |
+ <colgroup> |
|
| 115 |
+ <col style="width:20%;"> |
|
| 116 |
+ <col style="width:60%;"> |
|
| 117 |
+ <col style="width:20%;"> |
|
| 118 |
+ </colgroup> |
|
| 119 |
+ <thead> |
|
| 120 |
+ <tr> |
|
| 121 |
+ <th>키</th> |
|
| 122 |
+ <th>설명</th> |
|
| 123 |
+ <th>타입</th> |
|
| 124 |
+ </tr> |
|
| 125 |
+ </thead> |
|
| 126 |
+ <tbody> |
|
| 127 |
+ <tr> |
|
| 128 |
+ <td><span class="font_b">resultCode</span></td> |
|
| 129 |
+ <td>성공 여부("0" 이외는 실패)</td>
|
|
| 130 |
+ <td>String</td> |
|
| 131 |
+ </tr> |
|
| 132 |
+ <tr> |
|
| 133 |
+ <td><span class="font_b">data</span></td> |
|
| 134 |
+ <td>조회 결과 목록(성공 시 배열, 실패 시 오류 메시지)</td> |
|
| 135 |
+ <td>Array | String</td> |
|
| 136 |
+ </tr> |
|
| 137 |
+ <tr> |
|
| 138 |
+ <td><span class="font_b">[data][i].senderKey</span></td> |
|
| 139 |
+ <td>발신 프로필 SenderKey</td> |
|
| 140 |
+ <td>String</td> |
|
| 141 |
+ </tr> |
|
| 142 |
+ <tr> |
|
| 143 |
+ <td><span class="font_b">[data][i].phoneNumber</span></td> |
|
| 144 |
+ <td>대표 전화번호</td> |
|
| 145 |
+ <td>String</td> |
|
| 146 |
+ </tr> |
|
| 147 |
+ <tr> |
|
| 148 |
+ <td><span class="font_b">[data][i].yellowId</span></td> |
|
| 149 |
+ <td>카카오 채널(옐로아이디)</td> |
|
| 150 |
+ <td>String</td> |
|
| 151 |
+ </tr> |
|
| 152 |
+ <tr> |
|
| 153 |
+ <td><span class="font_b">[data][i].frstRegistPnttm</span></td> |
|
| 154 |
+ <td>최초 등록 일시(YYYY-MM-DD HH:mm:ss)</td> |
|
| 155 |
+ <td>String</td> |
|
| 156 |
+ </tr> |
|
| 157 |
+ <tr> |
|
| 158 |
+ <td><span class="font_b">[data][i].frstRegisterId</span></td> |
|
| 159 |
+ <td>최초 등록자 ID</td> |
|
| 160 |
+ <td>String</td> |
|
| 161 |
+ </tr> |
|
| 162 |
+ <tr> |
|
| 163 |
+ <td><span class="font_b">localDateTime</span></td> |
|
| 164 |
+ <td>서버 처리 일시(ISO-8601)</td> |
|
| 165 |
+ <td>String</td> |
|
| 166 |
+ </tr> |
|
| 167 |
+ </tbody> |
|
| 168 |
+ </table> |
|
| 169 |
+ <div class="table_info"> |
|
| 170 |
+ <p>※ JSON 객체로 응답합니다.</p> |
|
| 171 |
+ </div> |
|
| 172 |
+ </div> |
|
| 173 |
+ |
|
| 174 |
+ <div class="box"> |
|
| 175 |
+ <div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div> |
|
| 176 |
+ <div class="code_view"> |
|
| 177 |
+ <pre> |
|
| 178 |
+ <code class="language-json"> |
|
| 179 |
+{
|
|
| 180 |
+ "resultCode": "0", |
|
| 181 |
+ |
|
| 182 |
+ "data": [ |
|
| 183 |
+ |
|
| 184 |
+ {
|
|
| 185 |
+ |
|
| 186 |
+ "senderKey": "test_sender_key_001", |
|
| 187 |
+ |
|
| 188 |
+ "phoneNumber": "02-1234-0000", |
|
| 189 |
+ |
|
| 190 |
+ "yellowId": "@test_channel_001", |
|
| 191 |
+ |
|
| 192 |
+ "frstRegistPnttm": "2025-09-09 12:44:21", |
|
| 193 |
+ |
|
| 194 |
+ "frstRegisterId": "test_id_one" |
|
| 195 |
+ |
|
| 196 |
+ }, |
|
| 197 |
+ |
|
| 198 |
+ {
|
|
| 199 |
+ |
|
| 200 |
+ "senderKey": "test_sender_key_002", |
|
| 201 |
+ |
|
| 202 |
+ "phoneNumber": "02-1234-0001", |
|
| 203 |
+ |
|
| 204 |
+ "yellowId": "@test_channel_002", |
|
| 205 |
+ |
|
| 206 |
+ "frstRegistPnttm": "2025-09-09 12:44:21", |
|
| 207 |
+ |
|
| 208 |
+ "frstRegisterId": "test_id_tow" |
|
| 209 |
+ |
|
| 210 |
+ } |
|
| 211 |
+ |
|
| 212 |
+ ], |
|
| 213 |
+ |
|
| 214 |
+ "localDateTime": "2025-09-09T12:44:21.624464" |
|
| 215 |
+ |
|
| 216 |
+} |
|
| 217 |
+ </code> |
|
| 218 |
+ </pre> |
|
| 219 |
+ </div> |
|
| 220 |
+ </div> |
|
| 221 |
+ |
|
| 222 |
+ <div class="box"> |
|
| 223 |
+ <div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div> |
|
| 224 |
+ <div class="code_view"> |
|
| 225 |
+ <pre><code class="language-json"> |
|
| 226 |
+{
|
|
| 227 |
+ |
|
| 228 |
+ "resultCode": "4010", |
|
| 229 |
+ |
|
| 230 |
+ "data": "인증 정보가 올바르지 않습니다.(mberId/accessKey)" |
|
| 231 |
+ |
|
| 232 |
+} |
|
| 233 |
+ </code></pre> |
|
| 234 |
+ </div> |
|
| 235 |
+ </div> |
|
| 236 |
+ <!-- // Response --> |
|
| 213 | 237 |
</div> |
| 214 | 238 |
<!--// Response--> |
| 215 |
-</div> |
|
| 216 | 239 |
|
--- src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab2.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab2.jsp
... | ... | @@ -1,232 +1,272 @@ |
| 1 |
-<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
| 1 |
+<%@ page language="java" contentType="text/html; charset=UTF-8" |
|
| 2 |
+ pageEncoding="UTF-8"%> |
|
| 3 |
+ |
|
| 4 |
+ |
|
| 5 |
+<ul class="info"> |
|
| 6 |
+ <li>- API를 통해서 템플릿 목록을 조회할 수 111있습니다.</li> |
|
| 7 |
+ <li>- API를 통해서 템플릿 목록을 조회할 수 111있습니다.</li> |
|
| 8 |
+ <li>- API를 통해서 템플릿 목록을 조회할 수 111있습니다.</li> |
|
| 9 |
+ <li>- API를 통해서 템플릿 목록을 조회할 수 111있습니다.</li> |
|
| 10 |
+</ul> |
|
| 11 |
+<div class="re_cont"> |
|
| 12 |
+ <!-- Request --> |
|
| 13 |
+ <div class="req_title">Request</div> |
|
| 14 |
+ <div class="box"> |
|
| 15 |
+ <div class="text"> |
|
| 16 |
+ <h4>Request</h4> |
|
| 17 |
+ <table> |
|
| 18 |
+ <caption>API Request Http Method, 프로토콜, HOST, Service Port, Endpoint 정보 테이블</caption> |
|
| 19 |
+ <colgroup> |
|
| 20 |
+ <col style="width:20%;"> |
|
| 21 |
+ <col style="width:80%;"> |
|
| 22 |
+ </colgroup> |
|
| 23 |
+ <tr> |
|
| 24 |
+ <th>Http Method</th> |
|
| 25 |
+ <td>POST</td> |
|
| 26 |
+ </tr> |
|
| 27 |
+ <tr> |
|
| 28 |
+ <th>프로토콜</th> |
|
| 29 |
+ <td>HTTPS/1.1</td> |
|
| 30 |
+ </tr> |
|
| 31 |
+ <tr> |
|
| 32 |
+ <th>HOST</th> |
|
| 33 |
+ <td>api.munjaon.co.kr</td> |
|
| 34 |
+ </tr> |
|
| 35 |
+ <tr> |
|
| 36 |
+ <th>Service Port</th> |
|
| 37 |
+ <td>443</td> |
|
| 38 |
+ </tr> |
|
| 39 |
+ <tr> |
|
| 40 |
+ <th>Endpoint</th> |
|
| 41 |
+ <td>/api/kakao/inqry/templates/list</td> |
|
| 42 |
+ </tr> |
|
| 43 |
+ </table> |
|
| 44 |
+ </div> |
|
| 45 |
+ </div> |
|
| 46 |
+ |
|
| 47 |
+ <div class="type_table"> |
|
| 48 |
+ <table> |
|
| 49 |
+ <caption>템플릿 목록 조회 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> |
|
| 50 |
+ <colgroup> |
|
| 51 |
+ <col style="width:20%;"> |
|
| 52 |
+ <col style="width:45%;"> |
|
| 53 |
+ <col style="width:25%"> |
|
| 54 |
+ <col style="width:10%"> |
|
| 55 |
+ </colgroup> |
|
| 56 |
+ <thead> |
|
| 57 |
+ <tr> |
|
| 58 |
+ <th>키</th> |
|
| 59 |
+ <th>설명</th> |
|
| 60 |
+ <th>타입</th> |
|
| 61 |
+ <th>필수</th> |
|
| 62 |
+ </tr> |
|
| 63 |
+ </thead> |
|
| 64 |
+ <tbody> |
|
| 65 |
+ <tr> |
|
| 66 |
+ <td><span class="font_b">mberId</span></td> |
|
| 67 |
+ <td>사용자 ID</td> |
|
| 68 |
+ <td>String</td> |
|
| 69 |
+ <td><span class="select_o">O</span></td> |
|
| 70 |
+ </tr> |
|
| 71 |
+ <tr> |
|
| 72 |
+ <td><span class="font_b">accessKey</span></td> |
|
| 73 |
+ <td>인증용 API Key</td> |
|
| 74 |
+ <td>String</td> |
|
| 75 |
+ <td><span class="select_o">O</span></td> |
|
| 76 |
+ </tr> |
|
| 77 |
+ <tr> |
|
| 78 |
+ <td><span class="font_b">senderKey</span></td> |
|
| 79 |
+ <td>발신 프로필 SenderKey</td> |
|
| 80 |
+ <td>String</td> |
|
| 81 |
+ <td><span class="select_o">O</span></td> |
|
| 82 |
+ </tr> |
|
| 83 |
+ <tr> |
|
| 84 |
+ <td><span class="font_b">test_yn</span></td> |
|
| 85 |
+ <td>테스트 데이터 여부 (YS: 성공 테스트, YF: 실패 테스트)</td> |
|
| 86 |
+ <td>String</td> |
|
| 87 |
+ <td><span class="select_x">X</span></td> |
|
| 88 |
+ </tr> |
|
| 89 |
+ </tbody> |
|
| 90 |
+ </table> |
|
| 91 |
+ <div class="table_info"> |
|
| 92 |
+ <p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p> |
|
| 93 |
+ <p>※ Content-Type: application/json</p> |
|
| 94 |
+ </div> |
|
| 95 |
+ </div> |
|
| 96 |
+ |
|
| 97 |
+ <div class="box"> |
|
| 98 |
+ <div class="title">[Example]</div> |
|
| 99 |
+ <div class="code_view"> |
|
| 100 |
+ <pre> |
|
| 101 |
+ <code class="language-json"> |
|
| 102 |
+{
|
|
| 103 |
+ |
|
| 104 |
+ "mberId": "dudgusw", |
|
| 105 |
+ |
|
| 106 |
+ "accessKey": "3429312e6a2c732188d4cc7d15d8a1baa01d8d91", |
|
| 107 |
+ |
|
| 108 |
+ "senderKey": "669143473b1af459628b8bdf2f48da090c8895de", |
|
| 109 |
+ |
|
| 110 |
+ "test_yn": "" |
|
| 111 |
+} |
|
| 112 |
+ </code> |
|
| 113 |
+ </pre> |
|
| 114 |
+ </div> |
|
| 115 |
+ </div> |
|
| 116 |
+ <!-- // Request --> |
|
| 117 |
+ |
|
| 118 |
+ <!-- Response --> |
|
| 119 |
+ <div class="res_title">Response</div> |
|
| 120 |
+ <div class="type_table"> |
|
| 121 |
+ <table> |
|
| 122 |
+ <caption>템플릿 목록 조회 API Response 키 종류 및 설명, 타입 테이블</caption> |
|
| 123 |
+ <colgroup> |
|
| 124 |
+ <col style="width:20%;"> |
|
| 125 |
+ <col style="width:60%;"> |
|
| 126 |
+ <col style="width:20%;"> |
|
| 127 |
+ </colgroup> |
|
| 128 |
+ <thead> |
|
| 129 |
+ <tr> |
|
| 130 |
+ <th>키</th> |
|
| 131 |
+ <th>설명</th> |
|
| 132 |
+ <th>타입</th> |
|
| 133 |
+ </tr> |
|
| 134 |
+ </thead> |
|
| 135 |
+ <tbody> |
|
| 136 |
+ <tr> |
|
| 137 |
+ <td><span class="font_b">resultCode</span></td> |
|
| 138 |
+ <td>성공 여부("0" 이외는 실패)</td>
|
|
| 139 |
+ <td>String</td> |
|
| 140 |
+ </tr> |
|
| 141 |
+ <tr> |
|
| 142 |
+ <td><span class="font_b">data</span></td> |
|
| 143 |
+ <td>조회 결과 목록(성공 시 배열, 실패 시 오류 메시지)</td> |
|
| 144 |
+ <td>Array | String</td> |
|
| 145 |
+ </tr> |
|
| 146 |
+ <tr> |
|
| 147 |
+ <td><span class="font_b">[data][i].senderKey</span></td> |
|
| 148 |
+ <td>발신 프로필 SenderKey</td> |
|
| 149 |
+ <td>String</td> |
|
| 150 |
+ </tr> |
|
| 151 |
+ <tr> |
|
| 152 |
+ <td><span class="font_b">[data][i].templateCode</span></td> |
|
| 153 |
+ <td>템플릿 코드</td> |
|
| 154 |
+ <td>String</td> |
|
| 155 |
+ </tr> |
|
| 156 |
+ <tr> |
|
| 157 |
+ <td><span class="font_b">[data][i].templateName</span></td> |
|
| 158 |
+ <td>템플릿 명</td> |
|
| 159 |
+ <td>String</td> |
|
| 160 |
+ </tr> |
|
| 161 |
+ <tr> |
|
| 162 |
+ <td><span class="font_b">[data][i].createdAt</span></td> |
|
| 163 |
+ <td>템플릿 생성 일시</td> |
|
| 164 |
+ <td>String</td> |
|
| 165 |
+ </tr> |
|
| 166 |
+ <tr> |
|
| 167 |
+ <td><span class="font_b">[data][i].modifiedAt</span></td> |
|
| 168 |
+ <td>템플릿 수정 일시</td> |
|
| 169 |
+ <td>String</td> |
|
| 170 |
+ </tr> |
|
| 171 |
+ <tr> |
|
| 172 |
+ <td><span class="font_b">[data][i].serviceStatus</span></td> |
|
| 173 |
+ <td>서비스 상태(등록완료, 승인대기 등)</td> |
|
| 174 |
+ <td>String</td> |
|
| 175 |
+ </tr> |
|
| 176 |
+ <tr> |
|
| 177 |
+ <td><span class="font_b">localDateTime</span></td> |
|
| 178 |
+ <td>서버 처리 일시(ISO-8601)</td> |
|
| 179 |
+ <td>String</td> |
|
| 180 |
+ </tr> |
|
| 181 |
+ </tbody> |
|
| 182 |
+ </table> |
|
| 183 |
+ <div class="table_info"> |
|
| 184 |
+ <p>※ JSON 객체로 응답합니다.</p> |
|
| 185 |
+ </div> |
|
| 186 |
+ </div> |
|
| 187 |
+ |
|
| 188 |
+ <div class="box"> |
|
| 189 |
+ <div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div> |
|
| 190 |
+ <div class="code_view"> |
|
| 191 |
+ <pre> |
|
| 192 |
+ <code class="language-json"> |
|
| 193 |
+{
|
|
| 194 |
+ "resultCode": "0", |
|
| 195 |
+ |
|
| 196 |
+ "data": [ |
|
| 197 |
+ |
|
| 198 |
+ {
|
|
| 199 |
+ |
|
| 200 |
+ "senderKey": "test_sender_key_001", |
|
| 2 | 201 |
|
| 3 |
- <ul class="info"> |
|
| 4 |
- <li>- API를 통해서 다른 내용의 문자를 대량으로 전송할 수 있습니다.</li> |
|
| 5 |
- <li>- 발신번호는 문자온 사이트를 통해 사전등록 후 이용하실 수 있습니다.(마이페이지-발신번호 관리 메뉴 이용)</li> |
|
| 6 |
- <li>- 문자 내용이 "90byte"를 초과하는 경우 장문(LMS)으로 자동 전환됩니다.</li> |
|
| 7 |
- </ul> |
|
| 202 |
+ "templateCode": "TEST_TEMPLATE_001", |
|
| 203 |
+ |
|
| 204 |
+ "templateName": "테스트 템플릿 001", |
|
| 205 |
+ |
|
| 206 |
+ "createdAt": "2025-01-01 10:00:00", |
|
| 207 |
+ |
|
| 208 |
+ "modifiedAt": "2025-01-01 10:00:00", |
|
| 209 |
+ |
|
| 210 |
+ "serviceStatus": "REG(등록완료)" |
|
| 211 |
+ |
|
| 212 |
+ }, |
|
| 213 |
+ |
|
| 214 |
+ {
|
|
| 215 |
+ |
|
| 216 |
+ "senderKey": "test_sender_key_001", |
|
| 217 |
+ |
|
| 218 |
+ "templateCode": "TEST_TEMPLATE_002", |
|
| 219 |
+ |
|
| 220 |
+ "templateName": "테스트 템플릿 002", |
|
| 221 |
+ |
|
| 222 |
+ "createdAt": "2025-01-01 11:00:00", |
|
| 223 |
+ |
|
| 224 |
+ "modifiedAt": "2025-01-01 11:00:00", |
|
| 225 |
+ |
|
| 226 |
+ "serviceStatus": "REG(등록완료)" |
|
| 227 |
+ |
|
| 228 |
+ }, |
|
| 229 |
+ |
|
| 230 |
+ {
|
|
| 231 |
+ |
|
| 232 |
+ "senderKey": "test_sender_key_002", |
|
| 233 |
+ |
|
| 234 |
+ "templateCode": "TEST_TEMPLATE_003", |
|
| 235 |
+ |
|
| 236 |
+ "templateName": "테스트 템플릿 003", |
|
| 237 |
+ |
|
| 238 |
+ "createdAt": "2025-01-01 12:00:00", |
|
| 239 |
+ |
|
| 240 |
+ "modifiedAt": "2025-01-01 12:00:00", |
|
| 241 |
+ |
|
| 242 |
+ "serviceStatus": "PENDING(승인대기)" |
|
| 243 |
+ |
|
| 244 |
+ } |
|
| 245 |
+ |
|
| 246 |
+ ], |
|
| 247 |
+ |
|
| 248 |
+ "localDateTime": "2025-09-09T14:18:38.445175" |
|
| 249 |
+ |
|
| 250 |
+} |
|
| 251 |
+ </code> |
|
| 252 |
+ </pre> |
|
| 253 |
+ </div> |
|
| 254 |
+ </div> |
|
| 8 | 255 |
|
| 9 |
- <div class="re_cont"> |
|
| 10 |
- <!--Request--> |
|
| 11 |
- <div class="req_title">Request</div> |
|
| 12 |
- <div class="box"> |
|
| 13 |
- <div class="text"> |
|
| 14 |
- <h4>Request</h4> |
|
| 15 |
- <table> |
|
| 16 |
- <caption>API Request Http Method, 프로토콜, HOST, Service Port 정보 테이블</caption> |
|
| 17 |
- <colgroup> |
|
| 18 |
- <col style="width:20%;"> |
|
| 19 |
- <col style="width:80%;"> |
|
| 20 |
- </colgroup> |
|
| 21 |
- <tr> |
|
| 22 |
- <th>Http Method</th> |
|
| 23 |
- <td>POST</td> |
|
| 24 |
- </tr> |
|
| 25 |
- <tr> |
|
| 26 |
- <th>프로토콜</th> |
|
| 27 |
- <td>HTTP/1.1</td> |
|
| 28 |
- </tr> |
|
| 29 |
- <tr> |
|
| 30 |
- <th>HOST</th> |
|
| 31 |
- <td>api.munjaon.co.kr</td> |
|
| 32 |
- </tr> |
|
| 33 |
- <tr> |
|
| 34 |
- <th>Service Port</th> |
|
| 35 |
- <td>443</td> |
|
| 36 |
- </tr> |
|
| 37 |
- </table> |
|
| 38 |
- </div> |
|
| 39 |
- </div> |
|
| 40 |
- <div class="type_table"> |
|
| 41 |
- <table> |
|
| 42 |
- <caption>문자발송 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> |
|
| 43 |
- <colgroup> |
|
| 44 |
- <col style="width: 20%;"> |
|
| 45 |
- <col style="width: 45%;"> |
|
| 46 |
- <col style="width: 25%"> |
|
| 47 |
- <col style="width: 10%"> |
|
| 48 |
- </colgroup> |
|
| 49 |
- <thead> |
|
| 50 |
- <tr> |
|
| 51 |
- <th>키</th> |
|
| 52 |
- <th>설명</th> |
|
| 53 |
- <th>타입</th> |
|
| 54 |
- <th>필수</th> |
|
| 55 |
- </tr> |
|
| 56 |
- </thead> |
|
| 57 |
- <tbody> |
|
| 58 |
- <tr> |
|
| 59 |
- <td><span class="font_b">mberId</span></td> |
|
| 60 |
- <td>사용자 ID</td> |
|
| 61 |
- <td>String</td> |
|
| 62 |
- <td><span class="select_o">O</span></td> |
|
| 63 |
- </tr> |
|
| 64 |
- <tr> |
|
| 65 |
- <td><span class="font_b">accessKey</span></td> |
|
| 66 |
- <td>인증용 API Key</td> |
|
| 67 |
- <td>String</td> |
|
| 68 |
- <td><span class="select_o">O</span></td> |
|
| 69 |
- </tr> |
|
| 70 |
- <tr> |
|
| 71 |
- <td><span class="font_b">senderKey</span></td> |
|
| 72 |
- <td>발신 프로필 Key</td> |
|
| 73 |
- <td>String</td> |
|
| 74 |
- <td><span class="select_o">O</span></td> |
|
| 75 |
- </tr> |
|
| 76 |
- </tbody> |
|
| 77 |
- </table> |
|
| 78 |
- <div class="table_info"> |
|
| 79 |
- <p>※ 문자 텍스트 용량(byte) : 한글 1자당 2byte, 영문/숫자 1자당 1byte</p> |
|
| 80 |
- </div> |
|
| 81 |
- </div> |
|
| 82 |
- <div class="box"> |
|
| 83 |
- <div class="title">[Example]</div> |
|
| 84 |
- <div class="code_view"> |
|
| 85 |
- <p>{</p> |
|
| 86 |
- <div class="indent"> |
|
| 87 |
- <p><span>"mberId"</span>:"홍길동"</p> |
|
| 88 |
- <p>,<span>"accessKey"</span>:"414050694b953XXXXXXXXXXXXXX"</p> |
|
| 89 |
- <p>,<span>"senderKey"</span>:"669143473b1af459628b8bdXXXXXXXXXXXXXX"</p> |
|
| 90 |
- </div> |
|
| 91 |
- <p class="l_code">}</p> |
|
| 92 |
- </div> |
|
| 93 |
- </div> |
|
| 94 |
- <!--// Request--> |
|
| 95 |
- <!-- Response--> |
|
| 96 |
- <div class="res_title">Response</div> |
|
| 97 |
- <div class="type_table"> |
|
| 98 |
- <table> |
|
| 99 |
- <caption>문자발송(대량) API Response 키 종류 및 설명, 타입 테이블</caption> |
|
| 100 |
- <colgroup> |
|
| 101 |
- <col style="width:20%;"> |
|
| 102 |
- <col style="width:60%;"> |
|
| 103 |
- <col style="width:20%;"> |
|
| 104 |
- </colgroup> |
|
| 105 |
- <thead> |
|
| 106 |
- <tr> |
|
| 107 |
- <th>키</th> |
|
| 108 |
- <th>설명</th> |
|
| 109 |
- <th>타입</th> |
|
| 110 |
- </tr> |
|
| 111 |
- </thead> |
|
| 112 |
- <tbody> |
|
| 113 |
- <tr> |
|
| 114 |
- <td><span class="font_b">resultCode</span></td> |
|
| 115 |
- <td>성공 여부("0" 아니면 실패)</td>
|
|
| 116 |
- <td>String</td> |
|
| 117 |
- </tr> |
|
| 118 |
- <tr> |
|
| 119 |
- <td><span class="font_b">data</span></td> |
|
| 120 |
- <td>템플릿 정보 리스트</td> |
|
| 121 |
- <td>Array</td> |
|
| 122 |
- </tr> |
|
| 123 |
- <tr> |
|
| 124 |
- <td><span class="font_b">[data].senderKey</span></td> |
|
| 125 |
- <td>발신 프로필 키</td> |
|
| 126 |
- <td>String</td> |
|
| 127 |
- </tr> |
|
| 128 |
- <tr> |
|
| 129 |
- <td><span class="font_b">[data].templateCode</span></td> |
|
| 130 |
- <td>템플릿 코드</td> |
|
| 131 |
- <td>String</td> |
|
| 132 |
- </tr> |
|
| 133 |
- <tr> |
|
| 134 |
- <td><span class="font_b">[data].templateName</span></td> |
|
| 135 |
- <td>템플릿 이름</td> |
|
| 136 |
- <td>String</td> |
|
| 137 |
- </tr> |
|
| 138 |
- <tr> |
|
| 139 |
- <td><span class="font_b">[data].createdAt</span></td> |
|
| 140 |
- <td>생성일시</td> |
|
| 141 |
- <td>String</td> |
|
| 142 |
- </tr> |
|
| 143 |
- <tr> |
|
| 144 |
- <td><span class="font_b">[data].modifiedAt</span></td> |
|
| 145 |
- <td>수정일시</td> |
|
| 146 |
- <td>String</td> |
|
| 147 |
- </tr> |
|
| 148 |
- <tr> |
|
| 149 |
- <td><span class="font_b">[data].serviceStatus</span></td> |
|
| 150 |
- <td>템플릿 상태 <br>(REG: 등록, REQ: 검수요청, REJ: 반려, |
|
| 151 |
-STP: 차단, RDY: 발송전, ACT: 정상, DMT: 휴면, BLK: |
|
| 152 |
-차단)</td> |
|
| 153 |
- <td>String</td> |
|
| 154 |
- </tr> |
|
| 155 |
- </tbody> |
|
| 156 |
- </table> |
|
| 157 |
- <div class="table_info"> |
|
| 158 |
- <p>※ JSON 객체로 응답합니다.</p> |
|
| 159 |
- </div> |
|
| 160 |
- </div> |
|
| 161 |
- <div class="box"> |
|
| 162 |
- <div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div> |
|
| 256 |
+ <div class="box"> |
|
| 257 |
+ <div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div> |
|
| 258 |
+ <div class="code_view"> |
|
| 259 |
+ <pre><code class="language-json"> |
|
| 260 |
+{
|
|
| 163 | 261 |
|
| 164 |
- <div class="code_view"> |
|
| 165 |
- <p>{</p> |
|
| 166 |
- <div class="indent"> |
|
| 167 |
- <p> |
|
| 168 |
- <span>"resultCode"</span>:"0" |
|
| 169 |
- </p> |
|
| 170 |
- <p> |
|
| 171 |
- ,<span>"data"</span>{ |
|
| 172 |
- </p> |
|
| 173 |
- <div class="indent_t1"> |
|
| 174 |
- <p> |
|
| 175 |
- ,<span>"senderKey"</span>:"669143473b1af459628xxxxxxxxxxxxxxxxxxxxx" |
|
| 176 |
- </p> |
|
| 177 |
- <p> |
|
| 178 |
- ,<span>"templateCode"</span>:"bizp_20250527112232xxxxxxxxxxxxx" |
|
| 179 |
- </p> |
|
| 180 |
- <p> |
|
| 181 |
- ,<span>"templateName"</span>:"템플릿 명" |
|
| 182 |
- </p> |
|
| 183 |
- <p> |
|
| 184 |
- ,<span>"createdAt"</span>:"2025-05-27 11:22:33" |
|
| 185 |
- </p> |
|
| 186 |
- <p> |
|
| 187 |
- ,<span>"modifiedAt"</span>:"2025-05-27 11:22:33" |
|
| 188 |
- </p> |
|
| 189 |
- <p> |
|
| 190 |
- ,<span>"serviceStatus"</span>:"REG(등록완료)" |
|
| 191 |
- </p> |
|
| 192 |
- </div> |
|
| 193 |
- <p>}</p> |
|
| 194 |
- <p>,{</p> |
|
| 195 |
- <div class="indent_t1"> |
|
| 196 |
- <p> |
|
| 197 |
- ,<span>"senderKey"</span>:"669143473b1af459628xxxxxxxxxxxxxxxxxxxxx" |
|
| 198 |
- </p> |
|
| 199 |
- <p> |
|
| 200 |
- ,<span>"templateCode"</span>:"bizp_20250527112232xxxxxxxxxxxxx" |
|
| 201 |
- </p> |
|
| 202 |
- <p> |
|
| 203 |
- ,<span>"templateName"</span>:"템플릿 명2" |
|
| 204 |
- </p> |
|
| 205 |
- <p> |
|
| 206 |
- ,<span>"createdAt"</span>:"2025-05-27 11:22:33" |
|
| 207 |
- </p> |
|
| 208 |
- <p> |
|
| 209 |
- ,<span>"modifiedAt"</span>:"2025-05-27 11:22:33" |
|
| 210 |
- </p> |
|
| 211 |
- <p> |
|
| 212 |
- ,<span>"serviceStatus"</span>:"RDY(대기)" |
|
| 213 |
- </p> |
|
| 214 |
- </div> |
|
| 215 |
- <p>}</p> |
|
| 216 |
- </div> |
|
| 217 |
- <p class="l_code">}</p> |
|
| 218 |
- </div> |
|
| 219 |
- </div> |
|
| 220 |
- <div class="box"> |
|
| 221 |
- <div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div> |
|
| 222 |
- <div class="code_view"> |
|
| 223 |
- <p>{</p> |
|
| 224 |
- <div class="indent"> |
|
| 225 |
- <p><span>"resultCode"</span>:"4099"</p> |
|
| 226 |
- <p>,<span>"msg"</span>:"기타 시스템 오류"</p> |
|
| 227 |
- </div> |
|
| 228 |
- <p class="l_code">}</p> |
|
| 229 |
- </div> |
|
| 230 |
- </div> |
|
| 231 |
- <!--// Response--> |
|
| 232 |
- </div> |
|
| 262 |
+ "resultCode": "4010", |
|
| 263 |
+ |
|
| 264 |
+ "data": "인증 정보가 올바르지 않습니다.(mberId/accessKey)" |
|
| 265 |
+ |
|
| 266 |
+} |
|
| 267 |
+ </code></pre> |
|
| 268 |
+ </div> |
|
| 269 |
+ </div> |
|
| 270 |
+ <!-- // Response --> |
|
| 271 |
+ </div> |
|
| 272 |
+ <!--// Response--> |
--- src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab4.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab4.jsp
... | ... | @@ -1,353 +1,307 @@ |
| 1 |
-<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
|
| 2 |
- |
|
| 3 |
- <ul class="info"> |
|
| 4 |
- <li>- 전송결과 조회의 "msgGroupId"를 사용하여 전송된 문자의 상세결과를 수신번호별로 조회할 수 있습니다.</li> |
|
| 5 |
- <li>- 전송결과가 "대기"인 경우에는 최종 결과 확인까지 최대 72시간까지 소요됩니다.</li> |
|
| 6 |
- </ul> |
|
| 1 |
+<%@ page language="java" contentType="text/html; charset=UTF-8" |
|
| 2 |
+ pageEncoding="UTF-8"%> |
|
| 7 | 3 |
|
| 8 |
- <div class="re_cont"> |
|
| 9 |
- <!--Request--> |
|
| 10 |
- <div class="req_title">Request</div> |
|
| 11 |
- <div class="box"> |
|
| 12 |
- <div class="text"> |
|
| 13 |
- <h4>Request</h4> |
|
| 14 |
- <table> |
|
| 15 |
- <caption>API Request Http Method, 프로토콜, HOST, Service Port 정보 테이블</caption> |
|
| 16 |
- <colgroup> |
|
| 17 |
- <col style="width:20%;"> |
|
| 18 |
- <col style="width:80%;"> |
|
| 19 |
- </colgroup> |
|
| 20 |
- <tr> |
|
| 21 |
- <th>Http Method</th> |
|
| 22 |
- <td>POST</td> |
|
| 23 |
- </tr> |
|
| 24 |
- <tr> |
|
| 25 |
- <th>프로토콜</th> |
|
| 26 |
- <td>HTTP/1.1</td> |
|
| 27 |
- </tr> |
|
| 28 |
- <tr> |
|
| 29 |
- <th>HOST</th> |
|
| 30 |
- <td>api.munjaon.co.kr</td> |
|
| 31 |
- </tr> |
|
| 32 |
- <tr> |
|
| 33 |
- <th>Service Port</th> |
|
| 34 |
- <td>443</td> |
|
| 35 |
- </tr> |
|
| 36 |
- </table> |
|
| 37 |
- </div> |
|
| 38 |
- </div> |
|
| 39 |
- <div class="type_table"> |
|
| 40 |
- <table> |
|
| 41 |
- <caption>상세결과 조회 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> |
|
| 42 |
- <colgroup> |
|
| 43 |
- <col style="width:20%;"> |
|
| 44 |
- <col style="width:45%;"> |
|
| 45 |
- <col style="width:25%"> |
|
| 46 |
- <col style="width:10%"> |
|
| 47 |
- </colgroup> |
|
| 48 |
- <thead> |
|
| 49 |
- <tr> |
|
| 50 |
- <th>키</th> |
|
| 51 |
- <th>설명</th> |
|
| 52 |
- <th>타입</th> |
|
| 53 |
- <th>필수</th> |
|
| 54 |
- </tr> |
|
| 55 |
- </thead> |
|
| 56 |
- <tbody> |
|
| 57 |
- <tr> |
|
| 58 |
- <td><span class="font_b">mberId</span></td> |
|
| 59 |
- <td>사용자 ID</td> |
|
| 60 |
- <td>String</td> |
|
| 61 |
- <td><span class="select_o">O</span></td> |
|
| 62 |
- </tr> |
|
| 63 |
- <tr> |
|
| 64 |
- <td><span class="font_b">accessKey</span></td> |
|
| 65 |
- <td>인증용 API Key</td> |
|
| 66 |
- <td>String</td> |
|
| 67 |
- <td><span class="select_o">O</span></td> |
|
| 68 |
- </tr> |
|
| 69 |
- <tr> |
|
| 70 |
- <td><span class="font_b">msgGroupId</span></td> |
|
| 71 |
- <td>메시지 그룹 ID</td> |
|
| 72 |
- <td>String</td> |
|
| 73 |
- <td><span class="select_o">O</span></td> |
|
| 74 |
- </tr> |
|
| 75 |
- <tr> |
|
| 76 |
- <td><span class="font_b">page</span></td> |
|
| 77 |
- <td>페이지 번호</td> |
|
| 78 |
- <td>String</td> |
|
| 79 |
- <td><span class="select_x">X</span></td> |
|
| 80 |
- </tr> |
|
| 81 |
- <tr> |
|
| 82 |
- <td><span class="font_b">pageSize</span></td> |
|
| 83 |
- <td>페이지당 출력 개수</td> |
|
| 84 |
- <td>String</td> |
|
| 85 |
- <td><span class="select_x">X</span></td> |
|
| 86 |
- </tr> |
|
| 87 |
- <tr> |
|
| 88 |
- <td><span class="font_b">test_yn</span></td> |
|
| 89 |
- <td>테스트 데이터 여부</td> |
|
| 90 |
- <td>String</td> |
|
| 91 |
- <td><span class="select_x">X</span></td> |
|
| 92 |
- </tr> |
|
| 93 |
- </tbody> |
|
| 94 |
- </table> |
|
| 95 |
- <div class="table_info"> |
|
| 96 |
- <p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p> |
|
| 97 |
- </div> |
|
| 98 |
- </div> |
|
| 99 |
- <div class="box"> |
|
| 100 |
- <div class="title">[Example]</div> |
|
| 101 |
- <div class="code_view"> |
|
| 102 |
- <p>{</p> |
|
| 103 |
- <div class="indent"> |
|
| 104 |
- <p><span>"mberId"</span>:"홍길동"</p> |
|
| 105 |
- <p>,<span>"accessKey"</span>:"XXXXXXXXXXXXXX414050694b953"</p> |
|
| 106 |
- <p>,<span>"msgGroupId"</span>:"MSGGID_0000000011452"</p> |
|
| 107 |
- <p>,<span>"page"</span>:""</p> |
|
| 108 |
- <p>,<span>"pageSize"</span>:""</p> |
|
| 109 |
- <p>,<span>"test_yn"</span>:""</p> |
|
| 110 |
- </div> |
|
| 111 |
- <p class="l_code">}</p> |
|
| 112 |
- </div> |
|
| 113 |
- </div> |
|
| 114 |
- <!--// Request--> |
|
| 115 |
- <!-- Response--> |
|
| 116 |
- <div class="res_title">Response</div> |
|
| 117 |
- <div class="type_table"> |
|
| 118 |
- <table> |
|
| 119 |
- <caption>상세결과 조회 API Response 키 종류 및 설명, 타입 테이블</caption> |
|
| 120 |
- <colgroup> |
|
| 121 |
- <col style="width:20%;"> |
|
| 122 |
- <col style="width:60%;"> |
|
| 123 |
- <col style="width:20%;"> |
|
| 124 |
- </colgroup> |
|
| 125 |
- <thead> |
|
| 126 |
- <tr> |
|
| 127 |
- <th>키</th> |
|
| 128 |
- <th>설명</th> |
|
| 129 |
- <th>타입</th> |
|
| 130 |
- </tr> |
|
| 131 |
- </thead> |
|
| 132 |
- <tbody> |
|
| 133 |
- <tr> |
|
| 134 |
- <td><span class="font_b">resultCode</span></td> |
|
| 135 |
- <td>성공 여부("0" 아니면 실패)</td>
|
|
| 136 |
- <td>String</td> |
|
| 137 |
- </tr> |
|
| 138 |
- <tr> |
|
| 139 |
- <td><span class="font_b">data</span></td> |
|
| 140 |
- <td>결과값 객체(성공 : 데이터, 실패 : 메시지)</td> |
|
| 141 |
- <td>Object</td> |
|
| 142 |
- </tr> |
|
| 143 |
- <tr> |
|
| 144 |
- <td><span class="font_b">[data].message</span></td> |
|
| 145 |
- <td>문자</td> |
|
| 146 |
- <td>String</td> |
|
| 147 |
- </tr> |
|
| 148 |
- <tr> |
|
| 149 |
- <td><span class="font_b">[data].next_yn</span></td> |
|
| 150 |
- <td>다음 페이지 여부</td> |
|
| 151 |
- <td>String</td> |
|
| 152 |
- </tr> |
|
| 153 |
- <tr> |
|
| 154 |
- <td><span class="font_b">[data].objectList</span></td> |
|
| 155 |
- <td>결과값 목록</td> |
|
| 156 |
- <td>Object List</td> |
|
| 157 |
- </tr> |
|
| 158 |
- <tr> |
|
| 159 |
- <td><span class="font_b">[data].msgGroupId</span></td> |
|
| 160 |
- <td>메시지 그룹 ID</td> |
|
| 161 |
- <td>String</td> |
|
| 162 |
- </tr> |
|
| 163 |
- <tr> |
|
| 164 |
- <td><span class="font_b">[data].msgId</span></td> |
|
| 165 |
- <td>메시지 ID</td> |
|
| 166 |
- <td>String</td> |
|
| 167 |
- </tr> |
|
| 168 |
- <tr> |
|
| 169 |
- <td><span class="font_b">[data].msgTypeName</span></td> |
|
| 170 |
- <td>문자 구분명(단문, 장문, 그림)</td> |
|
| 171 |
- <td>String</td> |
|
| 172 |
- </tr> |
|
| 173 |
- <tr> |
|
| 174 |
- <td><span class="font_b">[data].msgType</span></td> |
|
| 175 |
- <td>메시지 타입(4 : 단문, 6 : 장문)</td> |
|
| 176 |
- <td>String</td> |
|
| 177 |
- </tr> |
|
| 178 |
- <tr> |
|
| 179 |
- <td><span class="font_b">[data].callFrom</span></td> |
|
| 180 |
- <td>발신자 번호</td> |
|
| 181 |
- <td>String</td> |
|
| 182 |
- </tr> |
|
| 183 |
- <tr> |
|
| 184 |
- <td><span class="font_b">[data].callTo</span></td> |
|
| 185 |
- <td>수신자 번호</td> |
|
| 186 |
- <td>String</td> |
|
| 187 |
- </tr> |
|
| 188 |
- <tr> |
|
| 189 |
- <td><span class="font_b">[data].msgGroupCnt</span></td> |
|
| 190 |
- <td>문자 발송 건수</td> |
|
| 191 |
- <td>String</td> |
|
| 192 |
- </tr> |
|
| 193 |
- <tr> |
|
| 194 |
- <td><span class="font_b">[data].sCnt</span></td> |
|
| 195 |
- <td>성공 건수</td> |
|
| 196 |
- <td>String</td> |
|
| 197 |
- </tr> |
|
| 198 |
- <tr> |
|
| 199 |
- <td><span class="font_b">[data].fCnt</span></td> |
|
| 200 |
- <td>실패 건수</td> |
|
| 201 |
- <td>String</td> |
|
| 202 |
- </tr> |
|
| 203 |
- <tr> |
|
| 204 |
- <td><span class="font_b">[data].wCnt</span></td> |
|
| 205 |
- <td>대기 건수</td> |
|
| 206 |
- <td>String</td> |
|
| 207 |
- </tr> |
|
| 208 |
- <tr> |
|
| 209 |
- <td><span class="font_b">[data].msgResult</span></td> |
|
| 210 |
- <td>발송 결과(성공 : S, 실패 : F)</td> |
|
| 211 |
- <td>String</td> |
|
| 212 |
- </tr> |
|
| 213 |
- <tr> |
|
| 214 |
- <td><span class="font_b">[data].smsTxt</span></td> |
|
| 215 |
- <td>문자 내용</td> |
|
| 216 |
- <td>String</td> |
|
| 217 |
- </tr> |
|
| 218 |
- <tr> |
|
| 219 |
- <td><span class="font_b">[data].subject</span></td> |
|
| 220 |
- <td>제목</td> |
|
| 221 |
- <td>String</td> |
|
| 222 |
- </tr> |
|
| 223 |
- <tr> |
|
| 224 |
- <td><span class="font_b">[data].reqdate</span></td> |
|
| 225 |
- <td>발송 일자</td> |
|
| 226 |
- <td>String</td> |
|
| 227 |
- </tr> |
|
| 228 |
- <tr> |
|
| 229 |
- <td><span class="font_b">[data].curState</span></td> |
|
| 230 |
- <td>전송 처리 결과값</td> |
|
| 231 |
- <td>String</td> |
|
| 232 |
- </tr> |
|
| 233 |
- <tr> |
|
| 234 |
- <td><span class="font_b">[data].userId</span></td> |
|
| 235 |
- <td>사용자 ID</td> |
|
| 236 |
- <td>String</td> |
|
| 237 |
- </tr> |
|
| 238 |
- <tr> |
|
| 239 |
- <td><span class="font_b">[data].regdate</span></td> |
|
| 240 |
- <td>등록 일자</td> |
|
| 241 |
- <td>String</td> |
|
| 242 |
- </tr> |
|
| 243 |
- <tr> |
|
| 244 |
- <td><span class="font_b">[data].reserveCYn</span></td> |
|
| 245 |
- <td>예약 취소 여부</td> |
|
| 246 |
- <td>String</td> |
|
| 247 |
- </tr> |
|
| 248 |
- <tr> |
|
| 249 |
- <td><span class="font_b">[data].ttlCnt</span></td> |
|
| 250 |
- <td>전체 요청 수</td> |
|
| 251 |
- <td>String</td> |
|
| 252 |
- </tr> |
|
| 253 |
- <tr> |
|
| 254 |
- <td><span class="font_b">[data].remainMsgCnt</span></td> |
|
| 255 |
- <td>남은 문자 건수</td> |
|
| 256 |
- <td>String</td> |
|
| 257 |
- </tr> |
|
| 258 |
- <tr> |
|
| 259 |
- <td><span class="font_b">[data].totMsgCnt</span></td> |
|
| 260 |
- <td>전체 문자 개수</td> |
|
| 261 |
- <td>String</td> |
|
| 262 |
- </tr> |
|
| 263 |
- </tbody> |
|
| 264 |
- </table> |
|
| 265 |
- <div class="table_info"> |
|
| 266 |
- <p>※ JSON 객체로 응답합니다.</p> |
|
| 267 |
- </div> |
|
| 268 |
- </div> |
|
| 269 |
- <div class="box"> |
|
| 270 |
- <div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div> |
|
| 271 |
- <div class="code_view"> |
|
| 272 |
- <p>{</p> |
|
| 273 |
- <div class="indent"> |
|
| 274 |
- <p><span>"resultCode"</span>:"0"</p> |
|
| 275 |
- <p>,<span>"data"</span>:[</p> |
|
| 276 |
- <p>{</p> |
|
| 277 |
- <div class="indent_t1"> |
|
| 278 |
- <p><span>"resultCode"</span>:"0"</p> |
|
| 279 |
- <p>,<span>"message"</span>: null</p> |
|
| 280 |
- <p>,<span>"next_yn"</span>:"n"</p> |
|
| 281 |
- <p>,<span>"msgGroupId"</span>:"MSGGID_0000000000000"</p> |
|
| 282 |
- <p>,<span>"objectList"</span>:[</p> |
|
| 283 |
- <p>{</p> |
|
| 284 |
- <div class="indent_t2"> |
|
| 285 |
- <p><span>"msgTypeName"</span>:"단문(SMS)"</p> |
|
| 286 |
- <p>,<span>"msgType"</span>:"4"</p> |
|
| 287 |
- <p>,<span>"callFrom"</span>:"01011112222"</p> |
|
| 288 |
- <p>,<span>"callTo"</span>:"01011112223"</p> |
|
| 289 |
- <p>,<span>"msgGroupCnt"</span>:"2"</p> |
|
| 290 |
- <p>,<span>"msgGroupId"</span>:"MSGGID_0000000013340"</p> |
|
| 291 |
- <p>,<span>"msgId"</span>:"MSGID_0000000000001"</p> |
|
| 292 |
- <p>,<span>"scnt"</span>:null</p> |
|
| 293 |
- <p>,<span>"fcnt"</span>:null</p> |
|
| 294 |
- <p>,<span>"wcnt"</span>:null</p> |
|
| 295 |
- <p>,<span>"msgResult"</span>:"S"</p> |
|
| 296 |
- <p>,<span>"smsTxt"</span>:"문자 내용 단문 예제"</p> |
|
| 297 |
- <p>,<span>"subject"</span>:null</p> |
|
| 298 |
- <p>,<span>"reqdate"</span>:"2023-06-13 17:48:08"</p> |
|
| 299 |
- <p>,<span>"curState"</span>:"3"</p> |
|
| 300 |
- <p>,<span>"userId"</span>:"testuser"</p> |
|
| 301 |
- <p>,<span>"regdate"</span>:"2023-06-13 17:48:07"</p> |
|
| 302 |
- <p>,<span>"reserveCYn"</span>:"N"</p> |
|
| 303 |
- <p>,<span>"ttlCnt"</span>:"10"</p> |
|
| 304 |
- <p>,<span>"remainMsgCnt"</span>:"0"</p> |
|
| 305 |
- <p>,<span>"totMsgCnt"</span>:"10"</p> |
|
| 306 |
- </div> |
|
| 307 |
- <p>}</p> |
|
| 308 |
- <p>,{</p> |
|
| 309 |
- <div class="indent_t2"> |
|
| 310 |
- <p><span>"msgTypeName"</span>:"단문(SMS)"</p> |
|
| 311 |
- <p>,<span>"msgType"</span>:"4"</p> |
|
| 312 |
- <p>,<span>"callFrom"</span>:"01011112222"</p> |
|
| 313 |
- <p>,<span>"callTo"</span>:"01011112223"</p> |
|
| 314 |
- <p>,<span>"msgGroupCnt"</span>:"2"</p> |
|
| 315 |
- <p>,<span>"msgGroupId"</span>:"MSGGID_0000000013340"</p> |
|
| 316 |
- <p>,<span>"msgId"</span>:"MSGID_0000000000002"</p> |
|
| 317 |
- <p>,<span>"scnt"</span>:null</p> |
|
| 318 |
- <p>,<span>"fcnt"</span>:null</p> |
|
| 319 |
- <p>,<span>"wcnt"</span>:null</p> |
|
| 320 |
- <p>,<span>"msgResult"</span>:"S"</p> |
|
| 321 |
- <p>,<span>"smsTxt"</span>:"문자 내용 단문 예제"</p> |
|
| 322 |
- <p>,<span>subject"</span>:null</p> |
|
| 323 |
- <p>,<span>reqdate"</span>:"2023-06-13 17:48:09"</p> |
|
| 324 |
- <p>,<span>"curState"</span>:"3"</p> |
|
| 325 |
- <p>,<span>"userId"</span>:"testuser"</p> |
|
| 326 |
- <p>,<span>"regdate"</span>:"2023-06-13 17:48:07"</p> |
|
| 327 |
- <p>,<span>"reserveCYn"</span>:"N"</p> |
|
| 328 |
- <p>,<span>"ttlCnt"</span>:"10"</p> |
|
| 329 |
- <p>,<span>"remainMsgCnt"</span>:"0"</p> |
|
| 330 |
- <p>,<span>"totMsgCnt"</span>:"10"</p> |
|
| 331 |
- <p>}</p> |
|
| 332 |
- </div> |
|
| 333 |
- <p>]</p> |
|
| 334 |
- </div> |
|
| 335 |
- <p class="l_code_t2">}</p> |
|
| 336 |
- <p>]</p> |
|
| 337 |
- </div> |
|
| 338 |
- <p class="l_code">}</p> |
|
| 339 |
- </div> |
|
| 340 |
- </div> |
|
| 341 |
- <div class="box"> |
|
| 342 |
- <div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div> |
|
| 343 |
- <div class="code_view"> |
|
| 344 |
- <p>{</p> |
|
| 345 |
- <div class="indent"> |
|
| 346 |
- <p><span>"resultCode"</span>:"4099"</p> |
|
| 347 |
- <p>,<span>"data"</span>:"기타 시스템 오류"</p> |
|
| 348 |
- </div> |
|
| 349 |
- <p class="l_code">}</p> |
|
| 350 |
- </div> |
|
| 351 |
- </div> |
|
| 352 |
- <!--// Response--> |
|
| 353 |
- </div> |
|
| 4 |
+ |
|
| 5 |
+<ul class="info"> |
|
| 6 |
+ <li>- API를 통해서 알림톡을 발송할 수 있습니다.</li> |
|
| 7 |
+ <li>- 사전에 등록된 SenderKey 및 승인된 템플릿을 사용해야 합니다.</li> |
|
| 8 |
+ <li>- 대체문자(subMsgTxt) 발송 여부는 subMsgSendYn으로 제어합니다.</li> |
|
| 9 |
+</ul> |
|
| 10 |
+<div class="re_cont"> |
|
| 11 |
+ <!-- Request --> |
|
| 12 |
+ <div class="req_title">Request</div> |
|
| 13 |
+ <div class="box"> |
|
| 14 |
+ <div class="text"> |
|
| 15 |
+ <h4>Request</h4> |
|
| 16 |
+ <table> |
|
| 17 |
+ <caption>API Request Http Method, 프로토콜, HOST, Service Port, Endpoint 정보 테이블</caption> |
|
| 18 |
+ <colgroup> |
|
| 19 |
+ <col style="width:20%;"> |
|
| 20 |
+ <col style="width:80%;"> |
|
| 21 |
+ </colgroup> |
|
| 22 |
+ <tr> |
|
| 23 |
+ <th>Http Method</th> |
|
| 24 |
+ <td>POST</td> |
|
| 25 |
+ </tr> |
|
| 26 |
+ <tr> |
|
| 27 |
+ <th>프로토콜</th> |
|
| 28 |
+ <td>HTTPS/1.1</td> |
|
| 29 |
+ </tr> |
|
| 30 |
+ <tr> |
|
| 31 |
+ <th>HOST</th> |
|
| 32 |
+ <td>api.munjaon.co.kr</td> |
|
| 33 |
+ </tr> |
|
| 34 |
+ <tr> |
|
| 35 |
+ <th>Service Port</th> |
|
| 36 |
+ <td>443</td> |
|
| 37 |
+ </tr> |
|
| 38 |
+ <tr> |
|
| 39 |
+ <th>Endpoint</th> |
|
| 40 |
+ <td>/api/kakao/at/sendMsg</td> |
|
| 41 |
+ </tr> |
|
| 42 |
+ </table> |
|
| 43 |
+ </div> |
|
| 44 |
+ </div> |
|
| 45 |
+ |
|
| 46 |
+ <div class="type_table"> |
|
| 47 |
+ <table> |
|
| 48 |
+ <caption>알림톡 발송 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> |
|
| 49 |
+ <colgroup> |
|
| 50 |
+ <col style="width:20%;"> |
|
| 51 |
+ <col style="width:45%;"> |
|
| 52 |
+ <col style="width:25%"> |
|
| 53 |
+ <col style="width:10%"> |
|
| 54 |
+ </colgroup> |
|
| 55 |
+ <thead> |
|
| 56 |
+ <tr> |
|
| 57 |
+ <th>키</th> |
|
| 58 |
+ <th>설명</th> |
|
| 59 |
+ <th>타입</th> |
|
| 60 |
+ <th>필수</th> |
|
| 61 |
+ </tr> |
|
| 62 |
+ </thead> |
|
| 63 |
+ <tbody> |
|
| 64 |
+ <tr> |
|
| 65 |
+ <td><span class="font_b">mberId</span></td> |
|
| 66 |
+ <td>사용자 ID</td> |
|
| 67 |
+ <td>String</td> |
|
| 68 |
+ <td><span class="select_o">O</span></td> |
|
| 69 |
+ </tr> |
|
| 70 |
+ <tr> |
|
| 71 |
+ <td><span class="font_b">accessKey</span></td> |
|
| 72 |
+ <td>인증용 API Key</td> |
|
| 73 |
+ <td>String</td> |
|
| 74 |
+ <td><span class="select_o">O</span></td> |
|
| 75 |
+ </tr> |
|
| 76 |
+ <tr> |
|
| 77 |
+ <td><span class="font_b">senderKey</span></td> |
|
| 78 |
+ <td>발신 프로필 SenderKey</td> |
|
| 79 |
+ <td>String</td> |
|
| 80 |
+ <td><span class="select_o">O</span></td> |
|
| 81 |
+ </tr> |
|
| 82 |
+ <tr> |
|
| 83 |
+ <td><span class="font_b">templateCode</span></td> |
|
| 84 |
+ <td>알림톡 템플릿 코드</td> |
|
| 85 |
+ <td>String</td> |
|
| 86 |
+ <td><span class="select_o">O</span></td> |
|
| 87 |
+ </tr> |
|
| 88 |
+ <tr> |
|
| 89 |
+ <td><span class="font_b">subMsgSendYn</span></td> |
|
| 90 |
+ <td>대체문자 발송 여부 (Y: 발송, N: 미발송)</td> |
|
| 91 |
+ <td>String</td> |
|
| 92 |
+ <td><span class="select_x">X</span></td> |
|
| 93 |
+ </tr> |
|
| 94 |
+ <tr> |
|
| 95 |
+ <td><span class="font_b">callFrom</span></td> |
|
| 96 |
+ <td>발신자 번호</td> |
|
| 97 |
+ <td>String</td> |
|
| 98 |
+ <td><span class="select_o">O</span></td> |
|
| 99 |
+ </tr> |
|
| 100 |
+ <tr> |
|
| 101 |
+ <td><span class="font_b">callTo_[i]</span></td> |
|
| 102 |
+ <td>수신자 번호(다건 가능)</td> |
|
| 103 |
+ <td>String</td> |
|
| 104 |
+ <td><span class="select_o">O</span></td> |
|
| 105 |
+ </tr> |
|
| 106 |
+ <tr> |
|
| 107 |
+ <td><span class="font_b">templateTitle_[i]</span></td> |
|
| 108 |
+ <td>치환용 템플릿 타이틀</td> |
|
| 109 |
+ <td>String</td> |
|
| 110 |
+ <td><span class="select_x">X</span></td> |
|
| 111 |
+ </tr> |
|
| 112 |
+ <tr> |
|
| 113 |
+ <td><span class="font_b">templateContent_[i]</span></td> |
|
| 114 |
+ <td>치환용 템플릿 내용</td> |
|
| 115 |
+ <td>String</td> |
|
| 116 |
+ <td><span class="select_o">O</span></td> |
|
| 117 |
+ </tr> |
|
| 118 |
+ <tr> |
|
| 119 |
+ <td><span class="font_b">subMsgTxt_[i]</span></td> |
|
| 120 |
+ <td>대체문자 내용</td> |
|
| 121 |
+ <td>String</td> |
|
| 122 |
+ <td><span class="select_x">X</span></td> |
|
| 123 |
+ </tr> |
|
| 124 |
+ <tr> |
|
| 125 |
+ <td><span class="font_b">test_yn</span></td> |
|
| 126 |
+ <td>테스트 데이터 여부 (YS: 성공 테스트, YF: 실패 테스트)</td> |
|
| 127 |
+ <td>String</td> |
|
| 128 |
+ <td><span class="select_x">X</span></td> |
|
| 129 |
+ </tr> |
|
| 130 |
+ </tbody> |
|
| 131 |
+ </table> |
|
| 132 |
+ <div class="table_info"> |
|
| 133 |
+ <p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p> |
|
| 134 |
+ <p>※ Content-Type: application/json</p> |
|
| 135 |
+ </div> |
|
| 136 |
+ </div> |
|
| 137 |
+ |
|
| 138 |
+ <div class="box"> |
|
| 139 |
+ <div class="title">[Example]</div> |
|
| 140 |
+ <div class="code_view"> |
|
| 141 |
+ <pre> |
|
| 142 |
+ <code class="language-json"> |
|
| 143 |
+{
|
|
| 144 |
+ |
|
| 145 |
+ "mberId": "dudgusw", |
|
| 146 |
+ |
|
| 147 |
+ "accessKey": "3429312e6a2c732188d4cc7d15d8a1baa01d8d91", |
|
| 148 |
+ |
|
| 149 |
+ "senderKey": "669143473b1af459628b8bdf2f48da090c8895de", |
|
| 150 |
+ |
|
| 151 |
+ "templateCode": "bizp_2025031410525347794704159", |
|
| 152 |
+ |
|
| 153 |
+ "subMsgSendYn": "Y", |
|
| 154 |
+ |
|
| 155 |
+ "callFrom": "010-9341-4986", |
|
| 156 |
+ |
|
| 157 |
+ "callTo_1": "01083584250", |
|
| 158 |
+ |
|
| 159 |
+ "callTo_2": "01011111111", |
|
| 160 |
+ |
|
| 161 |
+ "templateTitle_1": "테스트 이호영2222", |
|
| 162 |
+ |
|
| 163 |
+ "templateTitle_2": "테스트 이호영2111", |
|
| 164 |
+ |
|
| 165 |
+ "templateContent_1": "테스트 이호영\\n타이틀 버튼 치환 테스트입니다.", |
|
| 166 |
+ |
|
| 167 |
+ "templateContent_2": "테스트 이호영2\\n타이틀 버튼 치환 테스트입니다.", |
|
| 168 |
+ |
|
| 169 |
+ "subMsgTxt_1": "대체문자 발송", |
|
| 170 |
+ |
|
| 171 |
+ "subMsgTxt_2": "대체문자 발송2", |
|
| 172 |
+ |
|
| 173 |
+ "test_yn": "YS" |
|
| 174 |
+} |
|
| 175 |
+ </code> |
|
| 176 |
+ </pre> |
|
| 177 |
+ </div> |
|
| 178 |
+ </div> |
|
| 179 |
+ <!-- // Request --> |
|
| 180 |
+ |
|
| 181 |
+ <!-- Response --> |
|
| 182 |
+ <div class="res_title">Response</div> |
|
| 183 |
+ <div class="type_table"> |
|
| 184 |
+ <table> |
|
| 185 |
+ <caption>알림톡 발송 API Response 키 종류 및 설명, 타입 테이블</caption> |
|
| 186 |
+ <colgroup> |
|
| 187 |
+ <col style="width:20%;"> |
|
| 188 |
+ <col style="width:60%;"> |
|
| 189 |
+ <col style="width:20%;"> |
|
| 190 |
+ </colgroup> |
|
| 191 |
+ <thead> |
|
| 192 |
+ <tr> |
|
| 193 |
+ <th>키</th> |
|
| 194 |
+ <th>설명</th> |
|
| 195 |
+ <th>타입</th> |
|
| 196 |
+ </tr> |
|
| 197 |
+ </thead> |
|
| 198 |
+ <tbody> |
|
| 199 |
+ <tr> |
|
| 200 |
+ <td><span class="font_b">resultCode</span></td> |
|
| 201 |
+ <td>성공 여부("0" 이외는 실패)</td>
|
|
| 202 |
+ <td>String</td> |
|
| 203 |
+ </tr> |
|
| 204 |
+ <tr> |
|
| 205 |
+ <td><span class="font_b">data</span></td> |
|
| 206 |
+ <td>발송 결과 객체</td> |
|
| 207 |
+ <td>Object</td> |
|
| 208 |
+ </tr> |
|
| 209 |
+ <tr> |
|
| 210 |
+ <td><span class="font_b">[data].resultCode</span></td> |
|
| 211 |
+ <td>성공 여부("0" 이외는 실패)</td>
|
|
| 212 |
+ <td>String</td> |
|
| 213 |
+ </tr> |
|
| 214 |
+ <tr> |
|
| 215 |
+ <td><span class="font_b">[data].msgGroupId</span></td> |
|
| 216 |
+ <td>메시지 그룹 ID</td> |
|
| 217 |
+ <td>String</td> |
|
| 218 |
+ </tr> |
|
| 219 |
+ <tr> |
|
| 220 |
+ <td><span class="font_b">[data].successCnt</span></td> |
|
| 221 |
+ <td>성공 건수</td> |
|
| 222 |
+ <td>String</td> |
|
| 223 |
+ </tr> |
|
| 224 |
+ <tr> |
|
| 225 |
+ <td><span class="font_b">[data].blockCnt</span></td> |
|
| 226 |
+ <td>수신거부 건수</td> |
|
| 227 |
+ <td>String</td> |
|
| 228 |
+ </tr> |
|
| 229 |
+ <tr> |
|
| 230 |
+ <td><span class="font_b">[data].failCnt</span></td> |
|
| 231 |
+ <td>전송 실패 건수</td> |
|
| 232 |
+ <td>String</td> |
|
| 233 |
+ </tr> |
|
| 234 |
+ <tr> |
|
| 235 |
+ <td><span class="font_b">[data].msgType</span></td> |
|
| 236 |
+ <td>메시지 타입(AT: 알림톡)</td> |
|
| 237 |
+ <td>String</td> |
|
| 238 |
+ </tr> |
|
| 239 |
+ <tr> |
|
| 240 |
+ <td><span class="font_b">[data].test_yn</span></td> |
|
| 241 |
+ <td>테스트 여부</td> |
|
| 242 |
+ <td>String</td> |
|
| 243 |
+ </tr> |
|
| 244 |
+ <tr> |
|
| 245 |
+ <td><span class="font_b">localDateTime</span></td> |
|
| 246 |
+ <td>서버 처리 일시(ISO-8601)</td> |
|
| 247 |
+ <td>String</td> |
|
| 248 |
+ </tr> |
|
| 249 |
+ </tbody> |
|
| 250 |
+ </table> |
|
| 251 |
+ <div class="table_info"> |
|
| 252 |
+ <p>※ JSON 객체로 응답합니다.</p> |
|
| 253 |
+ </div> |
|
| 254 |
+ </div> |
|
| 255 |
+ |
|
| 256 |
+ <div class="box"> |
|
| 257 |
+ <div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div> |
|
| 258 |
+ <div class="code_view"> |
|
| 259 |
+ <pre> |
|
| 260 |
+ <code class="language-json"> |
|
| 261 |
+{
|
|
| 262 |
+ "resultCode": "0", |
|
| 263 |
+ |
|
| 264 |
+ "data": {
|
|
| 265 |
+ |
|
| 266 |
+ "resultCode": "0", |
|
| 267 |
+ |
|
| 268 |
+ "msgGroupId": "MSGGID_AT_1757467849001", |
|
| 269 |
+ |
|
| 270 |
+ "successCnt": "2", |
|
| 271 |
+ |
|
| 272 |
+ "blockCnt": "0", |
|
| 273 |
+ |
|
| 274 |
+ "failCnt": "0", |
|
| 275 |
+ |
|
| 276 |
+ "msgType": "AT", |
|
| 277 |
+ |
|
| 278 |
+ "test_yn": "YS" |
|
| 279 |
+ |
|
| 280 |
+ }, |
|
| 281 |
+ |
|
| 282 |
+ "localDateTime": "2025-09-10T10:30:49.001636" |
|
| 283 |
+ |
|
| 284 |
+} |
|
| 285 |
+ </code> |
|
| 286 |
+ </pre> |
|
| 287 |
+ </div> |
|
| 288 |
+ </div> |
|
| 289 |
+ |
|
| 290 |
+ <div class="box"> |
|
| 291 |
+ <div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div> |
|
| 292 |
+ <div class="code_view"> |
|
| 293 |
+ <pre><code class="language-json"> |
|
| 294 |
+{
|
|
| 295 |
+ |
|
| 296 |
+ "resultCode": "2080", |
|
| 297 |
+ |
|
| 298 |
+ "data": "친구톡은 20시 50분부터 익일 08시까지 발송이 제한됩니다." |
|
| 299 |
+ |
|
| 300 |
+} |
|
| 301 |
+ </code></pre> |
|
| 302 |
+ </div> |
|
| 303 |
+ </div> |
|
| 304 |
+ <!-- // Response --> |
|
| 305 |
+ </div> |
|
| 306 |
+ <!--// Response--> |
|
| 307 |
+</div> |
--- src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab5.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab5.jsp
... | ... | @@ -1,7 +1,7 @@ |
| 1 | 1 |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
| 2 | 2 |
|
| 3 | 3 |
<ul class="info"> |
| 4 |
- <li>- 보유캐시로 발송 가능한 문자의 건수를 단문(SMS), 장문(LMS), 그림(MMS)별로 각각 확인할 수 있습니다.</li> |
|
| 4 |
+ <li>- 보11유캐시로 발송 가능한 문자의 건수를 단문(SMS), 장문(LMS), 그림(MMS)별로 각각 확인할 수 있습니다.</li> |
|
| 5 | 5 |
<li>- 위 문자유형별 발송 가능건수는 개인별로 적용된 단가를 기준으로 산출되며, "첫결제 이벤트"는 적용되지 않습니다.</li> |
| 6 | 6 |
</ul> |
| 7 | 7 |
|
--- src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab6.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab6.jsp
... | ... | @@ -1,8 +1,9 @@ |
| 1 | 1 |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
| 2 | 2 |
|
| 3 |
- <ul class="info"> |
|
| 4 |
- <li>- 보유캐시로 발송 가능한 문자의 건수를 단문(SMS), 장문(LMS), 그림(MMS)별로 각각 확인할 수 있습니다.</li> |
|
| 5 |
- <li>- 위 문자유형별 발송 가능건수는 개인별로 적용된 단가를 기준으로 산출되며, "첫결제 이벤트"는 적용되지 않습니다.</li> |
|
| 3 |
+ <ul class="info"> |
|
| 4 |
+ <li>- 문자온 사이트 및 API를 통해 전송된 발송내역을 조회할 수 있습니다.</li> |
|
| 5 |
+ <li>- 문자 발송내역은 날짜별로 조회되며, 최근 3개월까지만 조회 가능합니다.</li> |
|
| 6 |
+ <li>- 발신번호별 문자 발송내역 조회 기능은 제공되지 않습니다.</li> |
|
| 6 | 7 |
</ul> |
| 7 | 8 |
|
| 8 | 9 |
<div class="re_cont"> |
... | ... | @@ -33,12 +34,16 @@ |
| 33 | 34 |
<th>Service Port</th> |
| 34 | 35 |
<td>443</td> |
| 35 | 36 |
</tr> |
| 37 |
+ <tr> |
|
| 38 |
+ <th>Endpoint</th> |
|
| 39 |
+ <td>/api/inqry/hstry</td> |
|
| 40 |
+ </tr> |
|
| 36 | 41 |
</table> |
| 37 | 42 |
</div> |
| 38 | 43 |
</div> |
| 39 | 44 |
<div class="type_table"> |
| 40 | 45 |
<table> |
| 41 |
- <caption>발송가능 건수 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> |
|
| 46 |
+ <caption>전송결과 조회 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> |
|
| 42 | 47 |
<colgroup> |
| 43 | 48 |
<col style="width:20%;"> |
| 44 | 49 |
<col style="width:45%;"> |
... | ... | @@ -65,7 +70,37 @@ |
| 65 | 70 |
<td>인증용 API Key</td> |
| 66 | 71 |
<td>String</td> |
| 67 | 72 |
<td><span class="select_o">O</span></td> |
| 68 |
- </tr> |
|
| 73 |
+ </tr> |
|
| 74 |
+ <tr> |
|
| 75 |
+ <td><span class="font_b">page</span></td> |
|
| 76 |
+ <td>페이지 번호</td> |
|
| 77 |
+ <td>String</td> |
|
| 78 |
+ <td><span class="select_x">X</span></td> |
|
| 79 |
+ </tr> |
|
| 80 |
+ <tr> |
|
| 81 |
+ <td><span class="font_b">pageSize</span></td> |
|
| 82 |
+ <td>페이지당 출력 개수</td> |
|
| 83 |
+ <td>String</td> |
|
| 84 |
+ <td><span class="select_x">X</span></td> |
|
| 85 |
+ </tr> |
|
| 86 |
+ <tr> |
|
| 87 |
+ <td><span class="font_b">startDate</span></td> |
|
| 88 |
+ <td>시작 일자</td> |
|
| 89 |
+ <td>String</td> |
|
| 90 |
+ <td><span class="select_x">X</span></td> |
|
| 91 |
+ </tr> |
|
| 92 |
+ <tr> |
|
| 93 |
+ <td><span class="font_b">endDate</span></td> |
|
| 94 |
+ <td>마감 일자</td> |
|
| 95 |
+ <td>String</td> |
|
| 96 |
+ <td><span class="select_x">X</span></td> |
|
| 97 |
+ </tr> |
|
| 98 |
+ <tr> |
|
| 99 |
+ <td><span class="font_b">test_yn</span></td> |
|
| 100 |
+ <td>테스트 데이터 여부</td> |
|
| 101 |
+ <td>String</td> |
|
| 102 |
+ <td><span class="select_x">X</span></td> |
|
| 103 |
+ </tr> |
|
| 69 | 104 |
</tbody> |
| 70 | 105 |
</table> |
| 71 | 106 |
<div class="table_info"> |
... | ... | @@ -77,8 +112,13 @@ |
| 77 | 112 |
<div class="code_view"> |
| 78 | 113 |
<p>{</p> |
| 79 | 114 |
<div class="indent"> |
| 80 |
- <p><span>"mberId"</span>:"String"</p> |
|
| 81 |
- <p>,<span>"accessKey"</span>:"String"</p> |
|
| 115 |
+ <p><span>"mberId"</span>:"홍길동"</p> |
|
| 116 |
+ <p>,<span>"accessKey"</span>:"XXXXXXXXXXXXXX414050694b953"</p> |
|
| 117 |
+ <p>,<span>"page"</span>:""</p> |
|
| 118 |
+ <p>,<span>"pageSize"</span>:""</p> |
|
| 119 |
+ <p>,<span>"startDate"</span>:""</p> |
|
| 120 |
+ <p>,<span>"endDate"</span>:""</p> |
|
| 121 |
+ <p>,<span>"test_yn"</span>:""</p> |
|
| 82 | 122 |
</div> |
| 83 | 123 |
<p class="l_code">}</p> |
| 84 | 124 |
</div> |
... | ... | @@ -86,9 +126,9 @@ |
| 86 | 126 |
<!--// Request--> |
| 87 | 127 |
<!-- Response--> |
| 88 | 128 |
<div class="res_title">Response</div> |
| 89 |
- <div class="type_table"> |
|
| 129 |
+ <div class="type_table"> |
|
| 90 | 130 |
<table> |
| 91 |
- <caption>발송가능 건수 API Response 키 종류 및 설명, 타입 테이블</caption> |
|
| 131 |
+ <caption>전송결과 조회 API Response 키 종류 및 설명, 타입 테이블</caption> |
|
| 92 | 132 |
<colgroup> |
| 93 | 133 |
<col style="width:20%;"> |
| 94 | 134 |
<col style="width:60%;"> |
... | ... | @@ -113,43 +153,123 @@ |
| 113 | 153 |
<td>Object</td> |
| 114 | 154 |
</tr> |
| 115 | 155 |
<tr> |
| 116 |
- <td><span class="font_b">[data].longPrice</span></td> |
|
| 117 |
- <td>장문 단가</td> |
|
| 118 |
- <td>String</td> |
|
| 119 |
- </tr> |
|
| 120 |
- <tr> |
|
| 121 |
- <td><span class="font_b">[data].longSendPsbltEa</span></td> |
|
| 122 |
- <td>장문 발송 가능 건수</td> |
|
| 123 |
- <td>String</td> |
|
| 124 |
- </tr> |
|
| 125 |
- <tr> |
|
| 126 |
- <td><span class="font_b">[data].mberMoney</span></td> |
|
| 127 |
- <td>현재 보유 금액</td> |
|
| 128 |
- <td>String</td> |
|
| 129 |
- </tr> |
|
| 130 |
- <tr> |
|
| 131 | 156 |
<td><span class="font_b">[data].message</span></td> |
| 132 | 157 |
<td>문자</td> |
| 133 | 158 |
<td>String</td> |
| 134 | 159 |
</tr> |
| 135 | 160 |
<tr> |
| 136 |
- <td><span class="font_b">[data].picturePrice</span></td> |
|
| 137 |
- <td>그림문자 단가</td> |
|
| 161 |
+ <td><span class="font_b">[data].next_yn</span></td> |
|
| 162 |
+ <td>다음 페이지 여부</td> |
|
| 138 | 163 |
<td>String</td> |
| 139 | 164 |
</tr> |
| 140 | 165 |
<tr> |
| 141 |
- <td><span class="font_b">[data].pictureSendPsbltEa</span></td> |
|
| 142 |
- <td>그림문자 발송 가능 건수</td> |
|
| 166 |
+ <td><span class="font_b">[data].objectList</span></td> |
|
| 167 |
+ <td>결과값 목록</td> |
|
| 168 |
+ <td>Object List</td> |
|
| 169 |
+ </tr> |
|
| 170 |
+ <tr> |
|
| 171 |
+ <td><span class="font_b">[data].msgGroupId</span></td> |
|
| 172 |
+ <td>메시지 그룹 ID</td> |
|
| 143 | 173 |
<td>String</td> |
| 144 | 174 |
</tr> |
| 145 | 175 |
<tr> |
| 146 |
- <td><span class="font_b">[data].shortPrice</span></td> |
|
| 147 |
- <td>단문 단가</td> |
|
| 176 |
+ <td><span class="font_b">[data].msgId</span></td> |
|
| 177 |
+ <td>메시지 ID</td> |
|
| 148 | 178 |
<td>String</td> |
| 149 | 179 |
</tr> |
| 150 | 180 |
<tr> |
| 151 |
- <td><span class="font_b">[data].shortSendPsbltEa</span></td> |
|
| 152 |
- <td>단문 발송 가능 건수</td> |
|
| 181 |
+ <td><span class="font_b">[data].msgTypeName</span></td> |
|
| 182 |
+ <td>문자 구분명(단문, 장문, 그림)</td> |
|
| 183 |
+ <td>String</td> |
|
| 184 |
+ </tr> |
|
| 185 |
+ <tr> |
|
| 186 |
+ <td><span class="font_b">[data].msgType</span></td> |
|
| 187 |
+ <td>메시지 타입(4 : 단문, 6 : 장문)</td> |
|
| 188 |
+ <td>String</td> |
|
| 189 |
+ </tr> |
|
| 190 |
+ <tr> |
|
| 191 |
+ <td><span class="font_b">[data].callFrom</span></td> |
|
| 192 |
+ <td>발신자 번호</td> |
|
| 193 |
+ <td>String</td> |
|
| 194 |
+ </tr> |
|
| 195 |
+ <tr> |
|
| 196 |
+ <td><span class="font_b">[data].callTo</span></td> |
|
| 197 |
+ <td>수신자 번호</td> |
|
| 198 |
+ <td>String</td> |
|
| 199 |
+ </tr> |
|
| 200 |
+ <tr> |
|
| 201 |
+ <td><span class="font_b">[data].msgGroupCnt</span></td> |
|
| 202 |
+ <td>문자 발송 건수</td> |
|
| 203 |
+ <td>String</td> |
|
| 204 |
+ </tr> |
|
| 205 |
+ <tr> |
|
| 206 |
+ <td><span class="font_b">[data].sCnt</span></td> |
|
| 207 |
+ <td>성공 건수</td> |
|
| 208 |
+ <td>String</td> |
|
| 209 |
+ </tr> |
|
| 210 |
+ <tr> |
|
| 211 |
+ <td><span class="font_b">[data].fCnt</span></td> |
|
| 212 |
+ <td>실패 건수</td> |
|
| 213 |
+ <td>String</td> |
|
| 214 |
+ </tr> |
|
| 215 |
+ <tr> |
|
| 216 |
+ <td><span class="font_b">[data].wCnt</span></td> |
|
| 217 |
+ <td>대기 건수</td> |
|
| 218 |
+ <td>String</td> |
|
| 219 |
+ </tr> |
|
| 220 |
+ <tr> |
|
| 221 |
+ <td><span class="font_b">[data].msgResult</span></td> |
|
| 222 |
+ <td>발송 결과(성공 : S, 실패 : F)</td> |
|
| 223 |
+ <td>String</td> |
|
| 224 |
+ </tr> |
|
| 225 |
+ <tr> |
|
| 226 |
+ <td><span class="font_b">[data].smsTxt</span></td> |
|
| 227 |
+ <td>문자 내용</td> |
|
| 228 |
+ <td>String</td> |
|
| 229 |
+ </tr> |
|
| 230 |
+ <tr> |
|
| 231 |
+ <td><span class="font_b">[data].subject</span></td> |
|
| 232 |
+ <td>제목</td> |
|
| 233 |
+ <td>String</td> |
|
| 234 |
+ </tr> |
|
| 235 |
+ <tr> |
|
| 236 |
+ <td><span class="font_b">[data].reqdate</span></td> |
|
| 237 |
+ <td>발송 일자</td> |
|
| 238 |
+ <td>String</td> |
|
| 239 |
+ </tr> |
|
| 240 |
+ <tr> |
|
| 241 |
+ <td><span class="font_b">[data].curState</span></td> |
|
| 242 |
+ <td>전송 처리 결과값</td> |
|
| 243 |
+ <td>String</td> |
|
| 244 |
+ </tr> |
|
| 245 |
+ <tr> |
|
| 246 |
+ <td><span class="font_b">[data].userId</span></td> |
|
| 247 |
+ <td>사용자 ID</td> |
|
| 248 |
+ <td>String</td> |
|
| 249 |
+ </tr> |
|
| 250 |
+ <tr> |
|
| 251 |
+ <td><span class="font_b">[data].regdate</span></td> |
|
| 252 |
+ <td>등록 일자</td> |
|
| 253 |
+ <td>String</td> |
|
| 254 |
+ </tr> |
|
| 255 |
+ <tr> |
|
| 256 |
+ <td><span class="font_b">[data].reserveCYn</span></td> |
|
| 257 |
+ <td>예약 취소 여부</td> |
|
| 258 |
+ <td>String</td> |
|
| 259 |
+ </tr> |
|
| 260 |
+ <tr> |
|
| 261 |
+ <td><span class="font_b">[data].ttlCnt</span></td> |
|
| 262 |
+ <td>전체 요청 수</td> |
|
| 263 |
+ <td>String</td> |
|
| 264 |
+ </tr> |
|
| 265 |
+ <tr> |
|
| 266 |
+ <td><span class="font_b">[data].remainMsgCnt</span></td> |
|
| 267 |
+ <td>남은 문자 건수</td> |
|
| 268 |
+ <td>String</td> |
|
| 269 |
+ </tr> |
|
| 270 |
+ <tr> |
|
| 271 |
+ <td><span class="font_b">[data].totMsgCnt</span></td> |
|
| 272 |
+ <td>전체 문자 개수</td> |
|
| 153 | 273 |
<td>String</td> |
| 154 | 274 |
</tr> |
| 155 | 275 |
</tbody> |
... | ... | @@ -164,18 +284,68 @@ |
| 164 | 284 |
<p>{</p> |
| 165 | 285 |
<div class="indent"> |
| 166 | 286 |
<p><span>"resultCode"</span>:"0"</p> |
| 167 |
- <p>,<span>"data"</span>{</p> |
|
| 287 |
+ <p>,<span>"data"</span>:[</p> |
|
| 288 |
+ <p>{</p> |
|
| 168 | 289 |
<div class="indent_t1"> |
| 169 |
- <p><span>"longPrice"</span>:"50"</p> |
|
| 170 |
- <p>,<span>"longSendPsbltEa"</span>:"19651"</p> |
|
| 171 |
- <p>,<span>"mberMoney"</span>:"982586.7"</p> |
|
| 172 |
- <p>,<span>"message"</span>:null</p> |
|
| 173 |
- <p>,<span>"picturePrice"</span>:"90"</p> |
|
| 174 |
- <p>,<span>"pictureSendPsbltEa"</span>:"10917"</p> |
|
| 175 |
- <p>,<span>"shortPrice"</span>:"18"</p> |
|
| 176 |
- <p>,<span>"shortSendPsbltEa"</span>:"54588"</p> |
|
| 177 |
- </div> |
|
| 178 |
- <p>}</p> |
|
| 290 |
+ <p><span>"resultCode"</span>:"0"</p> |
|
| 291 |
+ <p>,<span>"message"</span>: null</p> |
|
| 292 |
+ <p>,<span>"next_yn"</span>:"n"</p> |
|
| 293 |
+ <p>,<span>"msgGroupId"</span>:"MSGGID_0000000000000"</p> |
|
| 294 |
+ <p>,<span>"objectList"</span>:[</p> |
|
| 295 |
+ <p>{</p> |
|
| 296 |
+ <div class="indent_t2"> |
|
| 297 |
+ <p><span>"msgTypeName"</span>:"단문(SMS)"</p> |
|
| 298 |
+ <p>,<span>"msgType"</span>:"4"</p> |
|
| 299 |
+ <p>,<span>"callFrom"</span>:"01011112222"</p> |
|
| 300 |
+ <p>,<span>"callTo"</span>:"01011112223"</p> |
|
| 301 |
+ <p>,<span>"msgGroupCnt"</span>:"2"</p> |
|
| 302 |
+ <p>,<span>"msgGroupId"</span>:"MSGGID_0000000013340"</p> |
|
| 303 |
+ <p>,<span>"msgId"</span>:"MSGID_0000000000001"</p> |
|
| 304 |
+ <p>,<span>"scnt"</span>:"2"</p> |
|
| 305 |
+ <p>,<span>"fcnt"</span>:"0"</p> |
|
| 306 |
+ <p>,<span>"wcnt"</span>:"0"</p> |
|
| 307 |
+ <p>,<span>"msgResult"</span>:"S"</p> |
|
| 308 |
+ <p>,<span>"smsTxt"</span>:"문자 내용 단문 예제"</p> |
|
| 309 |
+ <p>,<span>"subject"</span>:null</p> |
|
| 310 |
+ <p>,<span>"reqdate"</span>:"2023-06-13 17:48:07"</p> |
|
| 311 |
+ <p>,<span>"curState"</span>:"3"</p> |
|
| 312 |
+ <p>,<span>"userId"</span>:"testuser"</p> |
|
| 313 |
+ <p>,<span>"regdate"</span>:"2023-06-13 17:48:07"</p> |
|
| 314 |
+ <p>,<span>"reserveCYn"</span>:"N"</p> |
|
| 315 |
+ <p>,<span>"ttlCnt"</span>:"1"</p> |
|
| 316 |
+ <p>,<span>"remainMsgCnt"</span>:"40"</p> |
|
| 317 |
+ <p>,<span>"totMsgCnt"</span>:"70"</p> |
|
| 318 |
+ </div> |
|
| 319 |
+ <p>}</p> |
|
| 320 |
+ <p>,{</p> |
|
| 321 |
+ <div class="indent_t2"> |
|
| 322 |
+ <p><span>"msgTypeName"</span>:"장문(LMS)"</p> |
|
| 323 |
+ <p>,<span>"msgType"</span>:"6"</p> |
|
| 324 |
+ <p>,<span>"callFrom"</span>:"01011112222"</p> |
|
| 325 |
+ <p>,<span>"callTo"</span>:"01011112223"</p> |
|
| 326 |
+ <p>,<span>"msgGroupCnt"</span>:"1"</p> |
|
| 327 |
+ <p>,<span>"msgGroupId"</span>:"MSGGID_0000000013341"</p> |
|
| 328 |
+ <p>,<span>"msgId"</span>:"MSGID_0000000000002"</p> |
|
| 329 |
+ <p>,<span>"scnt"</span>:"1"</p> |
|
| 330 |
+ <p>,<span>"fcnt"</span>:"0"</p> |
|
| 331 |
+ <p>,<span>"wcnt"</span>:"0"</p> |
|
| 332 |
+ <p>,<span>"msgResult"</span>:"S"</p> |
|
| 333 |
+ <p>,<span>"smsTxt"</span>:"문자 내용 장문 예제"</p> |
|
| 334 |
+ <p>,<span>subject"</span>:null</p> |
|
| 335 |
+ <p>,<span>reqdate"</span>:"2023-06-02 11:46:50"</p> |
|
| 336 |
+ <p>,<span>"curState"</span>:"3"</p> |
|
| 337 |
+ <p>,<span>"userId"</span>:"testuser"</p> |
|
| 338 |
+ <p>,<span>"regdate"</span>:"2023-06-02 11:46:49"</p> |
|
| 339 |
+ <p>,<span>"reserveCYn"</span>:"N"</p> |
|
| 340 |
+ <p>,<span>"ttlCnt"</span>:"1"</p> |
|
| 341 |
+ <p>,<span>"remainMsgCnt"</span>:"40"</p> |
|
| 342 |
+ <p>,<span>"totMsgCnt"</span>:"70"</p> |
|
| 343 |
+ <p>}</p> |
|
| 344 |
+ </div> |
|
| 345 |
+ <p>]</p> |
|
| 346 |
+ </div> |
|
| 347 |
+ <p class="l_code_t2">}</p> |
|
| 348 |
+ <p>]</p> |
|
| 179 | 349 |
</div> |
| 180 | 350 |
<p class="l_code">}</p> |
| 181 | 351 |
</div> |
... | ... | @@ -185,11 +355,11 @@ |
| 185 | 355 |
<div class="code_view"> |
| 186 | 356 |
<p>{</p> |
| 187 | 357 |
<div class="indent"> |
| 188 |
- <p><span>"resultCode"</span>:"5099"</p> |
|
| 358 |
+ <p><span>"resultCode"</span>:"3099"</p> |
|
| 189 | 359 |
<p>,<span>"data"</span>:"기타 시스템 오류"</p> |
| 190 | 360 |
</div> |
| 191 | 361 |
<p class="l_code">}</p> |
| 192 | 362 |
</div> |
| 193 | 363 |
</div> |
| 194 | 364 |
<!--// Response--> |
| 195 |
- </div> |
|
| 365 |
+ </div> |
--- src/main/webapp/WEB-INF/jsp/web/api/msg/apiSpec_tab3.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/msg/apiSpec_tab3.jsp
... | ... | @@ -1,7 +1,7 @@ |
| 1 | 1 |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> |
| 2 | 2 |
|
| 3 | 3 |
<ul class="info"> |
| 4 |
- <li>- 문자온 사이트 및 API를 통해 전송된 문자 발송내역을 조회할 수 있습니다.</li> |
|
| 4 |
+ <li>- 문자온 사이트 및 API를 통해 전송된 발송내역을 조회할 수 있습니다.</li> |
|
| 5 | 5 |
<li>- 문자 발송내역은 날짜별로 조회되며, 최근 3개월까지만 조회 가능합니다.</li> |
| 6 | 6 |
<li>- 발신번호별 문자 발송내역 조회 기능은 제공되지 않습니다.</li> |
| 7 | 7 |
</ul> |
+++ src/main/webapp/WEB-INF/jsp/web/api/top_subTepMenu.jsp
... | ... | @@ -0,0 +1,83 @@ |
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | + | |
| 4 | +<script type="text/javascript"> | |
| 5 | + | |
| 6 | +$(document).ready(function(){ | |
| 7 | + | |
| 8 | + // 현재 url 추출 | |
| 9 | + var url = window.location.pathname; | |
| 10 | + // 현재 url에서 uri만 추출 | |
| 11 | + var lastPart = url.split('/').pop(); | |
| 12 | + | |
| 13 | + console.log('lastPart : ', lastPart); | |
| 14 | + | |
| 15 | + | |
| 16 | + /* | |
| 17 | + * top 메뉴중 onclick에 있는 uri을 가져와 | |
| 18 | + * 현재 호출된 페이지와 uri와 비교해서 맞다면 | |
| 19 | + * active로 활성화 시킴 | |
| 20 | + */ | |
| 21 | + $('.tabType1 .tab').each(function(index) { | |
| 22 | + var $btn = $(this).children("button"); | |
| 23 | + var info = $btn.attr("data-info"); | |
| 24 | + | |
| 25 | + console.log('info : ', info); | |
| 26 | + console.log('lastPart : ', lastPart); | |
| 27 | + | |
| 28 | + if (info.indexOf(lastPart) > -1) { | |
| 29 | + $(this).addClass('active'); | |
| 30 | + } | |
| 31 | + }); | |
| 32 | + | |
| 33 | + // 페이지 이동 이벤트 | |
| 34 | + $('.goSubPage').click(function(){ | |
| 35 | + location.href=$(this).data('info'); | |
| 36 | + }); | |
| 37 | +}); | |
| 38 | + | |
| 39 | +// 기업회원 체크 | |
| 40 | +function usrDeptChk(){ | |
| 41 | + | |
| 42 | + var usrDept = '${LoginVO.dept}'; | |
| 43 | + | |
| 44 | + return true; | |
| 45 | + | |
| 46 | + /* 2023.09.25 JSPark 개인, 기업 모두 허용 | |
| 47 | + // 기업회원 전용체크 | |
| 48 | + if(usrDept != 'c'){ | |
| 49 | + | |
| 50 | + //기업회원 전용 메세지 팝업 띄워주기 | |
| 51 | + $('#btnDeptPop').click(); | |
| 52 | + | |
| 53 | + return false; | |
| 54 | + }else{ | |
| 55 | + return true; | |
| 56 | + } | |
| 57 | + */ | |
| 58 | +} | |
| 59 | + | |
| 60 | +// 튤팁에서 취소 클릭 시 이벤트 | |
| 61 | +function customPopup(){ | |
| 62 | + // 현재 url 추출 | |
| 63 | + var url = window.location.pathname; | |
| 64 | + // 현재 url에서 uri만 추출 | |
| 65 | + var lastPart = url.split('/').pop(); | |
| 66 | + | |
| 67 | + // URL을 치고 들어왔을 경우 '문자 API소개' 페이지로 이동 | |
| 68 | + if('appMgmt.do'.indexOf(lastPart) > -1){ | |
| 69 | + location.href='<c:url value="/web/api/intrdView.do" />'; | |
| 70 | + } | |
| 71 | +} | |
| 72 | + | |
| 73 | + | |
| 74 | +</script> | |
| 75 | + | |
| 76 | + <!--사용안내 내용--> | |
| 77 | + <div class="pay_tab_wrap"> | |
| 78 | + <ul class="tabType1"> | |
| 79 | + <li class="tab"><button type="button" class="goSubPage" data-info="<c:url value="/web/api/apiSpec.do" />">문자</button></li> | |
| 80 | + <li class="tab"><button type="button" class="goSubPage" data-info="<c:url value="/web/api/apiAtSpec.do" />">알림톡</button></li> | |
| 81 | + <li class="tab"><button type="button" class="goSubPage" data-info="<c:url value="/web/api/apiFtSpec.do" />">친구톡</button></li> | |
| 82 | + </ul> | |
| 83 | + </div> |
--- src/main/webapp/WEB-INF/jsp/web/api/top_tepMenu.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/top_tepMenu.jsp
... | ... | @@ -17,12 +17,17 @@ |
| 17 | 17 |
* active로 활성화 시킴 |
| 18 | 18 |
*/ |
| 19 | 19 |
$('.tabType4 .tab').each(function(index) {
|
| 20 |
- var idAttr = $(this).children("button").attr("id");
|
|
| 21 |
- idAttr += '.do'; |
|
| 20 |
+ var $btn = $(this).children("button");
|
|
| 21 |
+ var id = $btn.attr("id");
|
|
| 22 | 22 |
|
| 23 |
- if(idAttr.indexOf(lastPart) > -1){
|
|
| 24 |
- $(this).addClass('active');
|
|
| 25 |
- } |
|
| 23 |
+ // 개발가이드 그룹 |
|
| 24 |
+ if (id === 'apiSpec' && /api.*Spec\.do$/.test(lastPart)) {
|
|
| 25 |
+ $(this).addClass('active');
|
|
| 26 |
+ } |
|
| 27 |
+ // 나머지 기본 처리 |
|
| 28 |
+ else if (lastPart.indexOf(id) > -1) {
|
|
| 29 |
+ $(this).addClass('active');
|
|
| 30 |
+ } |
|
| 26 | 31 |
}); |
| 27 | 32 |
|
| 28 | 33 |
// 페이지 이동 이벤트 |
... | ... | @@ -99,7 +104,6 @@ |
| 99 | 104 |
<ul class="tabType4"> |
| 100 | 105 |
<li class="tab"><button type="button" class="goPage" id="intrdView" data-info="<c:url value="/web/api/intrdView.do" />">연동 안내</button></li> |
| 101 | 106 |
<li class="tab"><button type="button" class="goPage" id="apiSpec" data-info="<c:url value="/web/api/apiSpec.do" />">개발 가이드</button></li> |
| 102 |
-<%-- <li class="tab"><button type="button" class="goPage" id="apiAtSpec" data-info="<c:url value="/web/api/apiAtSpec.do" />">알림톡 사용안내</button></li> --%> |
|
| 103 | 107 |
<li class="tab"><button type="button" class="goPage" id="examDown" data-info="<c:url value="/web/api/examDown.do" />">예제 다운로드</button></li> |
| 104 | 108 |
<li class="tab"><button type="button" class="goPage" id="appMgmt" data-info="<c:url value="/web/api/appMgmt.do" />" >신청/관리</button></li> |
| 105 | 109 |
</ul> |
--- src/main/webapp/publish/js/content.js
+++ src/main/webapp/publish/js/content.js
... | ... | @@ -739,11 +739,14 @@ |
| 739 | 739 |
$('.tab_depth3.tDep2_cateCode a').removeClass('on');
|
| 740 | 740 |
$('.tab_depth3.tDep2_cateCode a').eq(0).addClass('on');
|
| 741 | 741 |
//해시태그 |
| 742 |
- $('.tab_depth4 .tDep2_hashTag a').removeClass('on');
|
|
| 743 |
- $('.tab_depth4 .tDep2_hashTag a').eq(0).addClass('on');
|
|
| 742 |
+// $('.tab_depth4 .tDep2_hashTag a').removeClass('on');
|
|
| 743 |
+// $('.tab_depth4 .tDep2_hashTag a').eq(0).addClass('on');
|
|
| 744 |
+// |
|
| 745 |
+// $(".api_guide_con").not($tabCn).removeClass("current");
|
|
| 746 |
+// $(".api_guide_con").not($tabCn).fadeOut(0);
|
|
| 744 | 747 |
|
| 745 |
- $(".api_guide_con").not($tabCn).removeClass("current");
|
|
| 746 |
- $(".api_guide_con").not($tabCn).fadeOut(0);
|
|
| 748 |
++ $(".api_guide_con").not($tabCn).removeClass("current").fadeOut(0);
|
|
| 749 |
++ $(".api_guide").not($tabCn).removeClass("current").fadeOut(0);
|
|
| 747 | 750 |
|
| 748 | 751 |
$(".api_guide_con").not($tabCn).removeClass("current");
|
| 749 | 752 |
$(".api_guide_con").not($tabCn).fadeOut(0);
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?