api> 개발가이드페이지
This commit is contained in:
parent
fcd1644355
commit
115630d4fb
@ -247,7 +247,7 @@ public class EgovMypageRESTAPIController{
|
||||
}
|
||||
model.addAttribute("loginVO", loginVO);
|
||||
|
||||
return "web/api/msg/apiSpec";
|
||||
return "web/api/apiSpec";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
149
src/main/webapp/WEB-INF/jsp/web/api/apiSpec.jsp
Normal file
149
src/main/webapp/WEB-INF/jsp/web/api/apiSpec.jsp
Normal file
@ -0,0 +1,149 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<script language=javascript>
|
||||
$(document).ready(function(){
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<style>
|
||||
|
||||
.padding_add > p
|
||||
{
|
||||
padding-left: 30px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.padding_add > div > p
|
||||
{
|
||||
padding-left: 60px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
<!-- content 영역 -->
|
||||
<div class="inner">
|
||||
<!-- send top -->
|
||||
<div class="send_top">
|
||||
|
||||
<c:import url="./top_tepMenu.jsp" /><!--// tab button -->
|
||||
|
||||
<!-- tab button -->
|
||||
<div class="api_guide_cont current">
|
||||
<div class="heading">
|
||||
<h2>REST API 개발 가이드</h2>
|
||||
</div>
|
||||
|
||||
<!--사용안내 내용-->
|
||||
<div class="pay_tab_wrap">
|
||||
<ul class="tabType1">
|
||||
<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>
|
||||
<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>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="api_guide current" id="tab5_1">
|
||||
<div class="list_tab_wrap2 type3">
|
||||
<!-- tab button -->
|
||||
<ul class="list_tab">
|
||||
<li class="tab active"><button type="button" onclick="TabType1(this,'1')">문자보내기</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'2')" id="btnEstimate">문자보내기(대량)</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'3')" id="btnEstimate3">전송내역조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'4')" id="btnEstimate4">전송결과조회(상세)</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'5')" id="btnEstimate5">발송가능건수</button></li>
|
||||
</ul><!--// tab button -->
|
||||
</div>
|
||||
|
||||
<!-- 문자보내기 -->
|
||||
<!-- 문자보내기 -->
|
||||
<!-- 문자보내기 -->
|
||||
<div class="fee_cont current" id="tab1_1">
|
||||
<c:import url="./msg/apiSpec_tab1.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 문자보내기(대량) -->
|
||||
<!-- 문자보내기(대량) -->
|
||||
<!-- 문자보내기(대량) -->
|
||||
<div class="fee_cont" id="tab1_2">
|
||||
<c:import url="./msg/apiSpec_tab2.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 전송내역조회 -->
|
||||
<div class="fee_cont" id="tab1_3">
|
||||
<c:import url="./msg/apiSpec_tab3.jsp" />
|
||||
</div>
|
||||
<!-- 전송결과조회(상세) -->
|
||||
<div class="fee_cont" id="tab1_4">
|
||||
<c:import url="./msg/apiSpec_tab4.jsp" />
|
||||
</div>
|
||||
<!-- 발송가능건수 -->
|
||||
<div class="fee_cont" id="tab1_5">
|
||||
<c:import url="./msg/apiSpec_tab5.jsp" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="api_guide current" id="tab5_2">
|
||||
<div class="list_tab_wrap2 type3">
|
||||
<!-- tab button -->
|
||||
<ul class="list_tab">
|
||||
|
||||
<li class="tab active"><button type="button" onclick="TabType2(this,'6');">채널 ID 조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType2(this,'7');">템플릿 ID 조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType2(this,'8');">템플릿상세조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType2(this,'9');">단건보내기</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType2(this,'10');">대량보내기</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType2(this,'11');">전송내역조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType2(this,'12');">전송내역조회(상세)</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType2(this,'13');">발송가능건수</button></li>
|
||||
|
||||
</ul><!--// tab button -->
|
||||
</div>
|
||||
|
||||
<!-- 채널 ID 조회 -->
|
||||
<div class="api_guide_con" id="tab2_6">
|
||||
<c:import url="./at/apiSpec_tab1.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 템플릿 ID 조회 -->
|
||||
<div class="api_guide_con" id="tab2_7">
|
||||
<c:import url="./at/apiSpec_tab2.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 템플릿상세조회 -->
|
||||
<div class="api_guide_con" id="tab2_8">
|
||||
<c:import url="./at/apiSpec_tab3.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 단건보내기 -->
|
||||
<div class="api_guide_con" id="tab2_9">
|
||||
<c:import url="./at/apiSpec_tab4.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 대량보내기 -->
|
||||
<div class="api_guide_con" id="tab2_10">
|
||||
<c:import url="./at/apiSpec_tab5.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 전송내역조회 -->
|
||||
<div class="api_guide_con" id="tab2_11">
|
||||
<c:import url="./at/apiSpec_tab6.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 전송내역조회(상세) -->
|
||||
<div class="api_guide_con" id="tab2_12">
|
||||
<c:import url="./at/apiSpec_tab7.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 발송가능건수 -->
|
||||
<div class="api_guide_con" id="tab2_13">
|
||||
<c:import url="./at/apiSpec_tab8.jsp" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--// send top -->
|
||||
</div>
|
||||
@ -1,82 +0,0 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<script language=javascript>
|
||||
$(document).ready(function(){
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<style>
|
||||
|
||||
.padding_add > p
|
||||
{
|
||||
padding-left: 30px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.padding_add > div > p
|
||||
{
|
||||
padding-left: 60px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
<!-- content 영역 -->
|
||||
<div class="inner">
|
||||
<!-- send top -->
|
||||
<div class="send_top">
|
||||
|
||||
<c:import url="../top_tepMenu.jsp" /><!--// tab button -->
|
||||
|
||||
<!-- tab button -->
|
||||
<div class="api_guide_cont current" id="tab5_1">
|
||||
<div class="heading">
|
||||
<h2>REST API 설명</h2>
|
||||
</div>
|
||||
<div class="pay_tab_wrap">
|
||||
<!-- tab button -->
|
||||
<ul class="tabType1">
|
||||
<li class="tab active"><button type="button" onclick="TabType1(this,'1')">채널ID조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'2')">템플릿ID조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'3')">템플릿상세조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'4')">단건보내기</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'5')">대량보내기</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'6')">전송내역조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'7')">전송결과조회(상세)</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'8')">발송가능건수</button></li>
|
||||
</ul><!--// tab button -->
|
||||
</div>
|
||||
|
||||
<!-- 문자보내기 -->
|
||||
<!-- 문자보내기 -->
|
||||
<!-- 문자보내기 -->
|
||||
<div class="fee_cont current" id="tab1_1">
|
||||
<c:import url="./apiSpec_tab1.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 문자보내기(대량) -->
|
||||
<!-- 문자보내기(대량) -->
|
||||
<!-- 문자보내기(대량) -->
|
||||
<div class="fee_cont" id="tab1_2">
|
||||
<c:import url="./apiSpec_tab2.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 전송내역조회 -->
|
||||
<div class="fee_cont" id="tab1_3">
|
||||
<c:import url="./apiSpec_tab3.jsp" />
|
||||
</div>
|
||||
<!-- 전송결과조회(상세) -->
|
||||
<div class="fee_cont" id="tab1_4">
|
||||
<c:import url="./apiSpec_tab4.jsp" />
|
||||
</div>
|
||||
<!-- 발송가능건수 -->
|
||||
<div class="fee_cont" id="tab1_5">
|
||||
<c:import url="./apiSpec_tab5.jsp" />
|
||||
</div>
|
||||
</div>
|
||||
</div><!--// send top -->
|
||||
</div>
|
||||
195
src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab6.jsp
Normal file
195
src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab6.jsp
Normal file
@ -0,0 +1,195 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
|
||||
<ul class="info">
|
||||
<li>- 보유캐시로 발송 가능한 문자의 건수를 단문(SMS), 장문(LMS), 그림(MMS)별로 각각 확인할 수 있습니다.</li>
|
||||
<li>- 위 문자유형별 발송 가능건수는 개인별로 적용된 단가를 기준으로 산출되며, "첫결제 이벤트"는 적용되지 않습니다.</li>
|
||||
</ul>
|
||||
|
||||
<div class="re_cont">
|
||||
<!--Request-->
|
||||
<div class="req_title">Request</div>
|
||||
<div class="box">
|
||||
<div class="text">
|
||||
<h4>Request</h4>
|
||||
<table>
|
||||
<caption>API Request Http Method, 프로토콜, HOST, Service Port 정보 테이블</caption>
|
||||
<colgroup>
|
||||
<col style="width:20%;">
|
||||
<col style="width:80%;">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th>Http Method</th>
|
||||
<td>POST</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>프로토콜</th>
|
||||
<td>HTTP/1.1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>HOST</th>
|
||||
<td>api.munjaon.co.kr</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Service Port</th>
|
||||
<td>443</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="type_table">
|
||||
<table>
|
||||
<caption>발송가능 건수 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption>
|
||||
<colgroup>
|
||||
<col style="width:20%;">
|
||||
<col style="width:45%;">
|
||||
<col style="width:25%">
|
||||
<col style="width:10%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>키</th>
|
||||
<th>설명</th>
|
||||
<th>타입</th>
|
||||
<th>필수</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="font_b">mberId</span></td>
|
||||
<td>사용자 ID</td>
|
||||
<td>String</td>
|
||||
<td><span class="select_o">O</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">accessKey</span></td>
|
||||
<td>인증용 API Key</td>
|
||||
<td>String</td>
|
||||
<td><span class="select_o">O</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table_info">
|
||||
<p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="title">[Example]</div>
|
||||
<div class="code_view">
|
||||
<p>{</p>
|
||||
<div class="indent">
|
||||
<p><span>"mberId"</span>:"String"</p>
|
||||
<p>,<span>"accessKey"</span>:"String"</p>
|
||||
</div>
|
||||
<p class="l_code">}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--// Request-->
|
||||
<!-- Response-->
|
||||
<div class="res_title">Response</div>
|
||||
<div class="type_table">
|
||||
<table>
|
||||
<caption>발송가능 건수 API Response 키 종류 및 설명, 타입 테이블</caption>
|
||||
<colgroup>
|
||||
<col style="width:20%;">
|
||||
<col style="width:60%;">
|
||||
<col style="width:20%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>키</th>
|
||||
<th>설명</th>
|
||||
<th>타입</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="font_b">resultCode</span></td>
|
||||
<td>성공 여부("0" 아니면 실패)</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">data</span></td>
|
||||
<td>결과값 객체(성공 : 데이터, 실패 : 메시지)</td>
|
||||
<td>Object</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].longPrice</span></td>
|
||||
<td>장문 단가</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].longSendPsbltEa</span></td>
|
||||
<td>장문 발송 가능 건수</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].mberMoney</span></td>
|
||||
<td>현재 보유 금액</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].message</span></td>
|
||||
<td>문자</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].picturePrice</span></td>
|
||||
<td>그림문자 단가</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].pictureSendPsbltEa</span></td>
|
||||
<td>그림문자 발송 가능 건수</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].shortPrice</span></td>
|
||||
<td>단문 단가</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].shortSendPsbltEa</span></td>
|
||||
<td>단문 발송 가능 건수</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table_info">
|
||||
<p>※ JSON 객체로 응답합니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div>
|
||||
<div class="code_view">
|
||||
<p>{</p>
|
||||
<div class="indent">
|
||||
<p><span>"resultCode"</span>:"0"</p>
|
||||
<p>,<span>"data"</span>{</p>
|
||||
<div class="indent_t1">
|
||||
<p><span>"longPrice"</span>:"50"</p>
|
||||
<p>,<span>"longSendPsbltEa"</span>:"19651"</p>
|
||||
<p>,<span>"mberMoney"</span>:"982586.7"</p>
|
||||
<p>,<span>"message"</span>:null</p>
|
||||
<p>,<span>"picturePrice"</span>:"90"</p>
|
||||
<p>,<span>"pictureSendPsbltEa"</span>:"10917"</p>
|
||||
<p>,<span>"shortPrice"</span>:"18"</p>
|
||||
<p>,<span>"shortSendPsbltEa"</span>:"54588"</p>
|
||||
</div>
|
||||
<p>}</p>
|
||||
</div>
|
||||
<p class="l_code">}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div>
|
||||
<div class="code_view">
|
||||
<p>{</p>
|
||||
<div class="indent">
|
||||
<p><span>"resultCode"</span>:"5099"</p>
|
||||
<p>,<span>"data"</span>:"기타 시스템 오류"</p>
|
||||
</div>
|
||||
<p class="l_code">}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--// Response-->
|
||||
</div>
|
||||
195
src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab7.jsp
Normal file
195
src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab7.jsp
Normal file
@ -0,0 +1,195 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
|
||||
<ul class="info">
|
||||
<li>- 보유캐시로 발송 가능한 문자의 건수를 단문(SMS), 장문(LMS), 그림(MMS)별로 각각 확인할 수 있습니다.</li>
|
||||
<li>- 위 문자유형별 발송 가능건수는 개인별로 적용된 단가를 기준으로 산출되며, "첫결제 이벤트"는 적용되지 않습니다.</li>
|
||||
</ul>
|
||||
|
||||
<div class="re_cont">
|
||||
<!--Request-->
|
||||
<div class="req_title">Request</div>
|
||||
<div class="box">
|
||||
<div class="text">
|
||||
<h4>Request</h4>
|
||||
<table>
|
||||
<caption>API Request Http Method, 프로토콜, HOST, Service Port 정보 테이블</caption>
|
||||
<colgroup>
|
||||
<col style="width:20%;">
|
||||
<col style="width:80%;">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th>Http Method</th>
|
||||
<td>POST</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>프로토콜</th>
|
||||
<td>HTTP/1.1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>HOST</th>
|
||||
<td>api.munjaon.co.kr</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Service Port</th>
|
||||
<td>443</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="type_table">
|
||||
<table>
|
||||
<caption>발송가능 건수 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption>
|
||||
<colgroup>
|
||||
<col style="width:20%;">
|
||||
<col style="width:45%;">
|
||||
<col style="width:25%">
|
||||
<col style="width:10%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>키</th>
|
||||
<th>설명</th>
|
||||
<th>타입</th>
|
||||
<th>필수</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="font_b">mberId</span></td>
|
||||
<td>사용자 ID</td>
|
||||
<td>String</td>
|
||||
<td><span class="select_o">O</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">accessKey</span></td>
|
||||
<td>인증용 API Key</td>
|
||||
<td>String</td>
|
||||
<td><span class="select_o">O</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table_info">
|
||||
<p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="title">[Example]</div>
|
||||
<div class="code_view">
|
||||
<p>{</p>
|
||||
<div class="indent">
|
||||
<p><span>"mberId"</span>:"String"</p>
|
||||
<p>,<span>"accessKey"</span>:"String"</p>
|
||||
</div>
|
||||
<p class="l_code">}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--// Request-->
|
||||
<!-- Response-->
|
||||
<div class="res_title">Response</div>
|
||||
<div class="type_table">
|
||||
<table>
|
||||
<caption>발송가능 건수 API Response 키 종류 및 설명, 타입 테이블</caption>
|
||||
<colgroup>
|
||||
<col style="width:20%;">
|
||||
<col style="width:60%;">
|
||||
<col style="width:20%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>키</th>
|
||||
<th>설명</th>
|
||||
<th>타입</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="font_b">resultCode</span></td>
|
||||
<td>성공 여부("0" 아니면 실패)</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">data</span></td>
|
||||
<td>결과값 객체(성공 : 데이터, 실패 : 메시지)</td>
|
||||
<td>Object</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].longPrice</span></td>
|
||||
<td>장문 단가</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].longSendPsbltEa</span></td>
|
||||
<td>장문 발송 가능 건수</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].mberMoney</span></td>
|
||||
<td>현재 보유 금액</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].message</span></td>
|
||||
<td>문자</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].picturePrice</span></td>
|
||||
<td>그림문자 단가</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].pictureSendPsbltEa</span></td>
|
||||
<td>그림문자 발송 가능 건수</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].shortPrice</span></td>
|
||||
<td>단문 단가</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].shortSendPsbltEa</span></td>
|
||||
<td>단문 발송 가능 건수</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table_info">
|
||||
<p>※ JSON 객체로 응답합니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div>
|
||||
<div class="code_view">
|
||||
<p>{</p>
|
||||
<div class="indent">
|
||||
<p><span>"resultCode"</span>:"0"</p>
|
||||
<p>,<span>"data"</span>{</p>
|
||||
<div class="indent_t1">
|
||||
<p><span>"longPrice"</span>:"50"</p>
|
||||
<p>,<span>"longSendPsbltEa"</span>:"19651"</p>
|
||||
<p>,<span>"mberMoney"</span>:"982586.7"</p>
|
||||
<p>,<span>"message"</span>:null</p>
|
||||
<p>,<span>"picturePrice"</span>:"90"</p>
|
||||
<p>,<span>"pictureSendPsbltEa"</span>:"10917"</p>
|
||||
<p>,<span>"shortPrice"</span>:"18"</p>
|
||||
<p>,<span>"shortSendPsbltEa"</span>:"54588"</p>
|
||||
</div>
|
||||
<p>}</p>
|
||||
</div>
|
||||
<p class="l_code">}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div>
|
||||
<div class="code_view">
|
||||
<p>{</p>
|
||||
<div class="indent">
|
||||
<p><span>"resultCode"</span>:"5099"</p>
|
||||
<p>,<span>"data"</span>:"기타 시스템 오류"</p>
|
||||
</div>
|
||||
<p class="l_code">}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--// Response-->
|
||||
</div>
|
||||
195
src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab8.jsp
Normal file
195
src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab8.jsp
Normal file
@ -0,0 +1,195 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
|
||||
<ul class="info">
|
||||
<li>- 보유캐시로 발송 가능한 문자의 건수를 단문(SMS), 장문(LMS), 그림(MMS)별로 각각 확인할 수 있습니다.</li>
|
||||
<li>- 위 문자유형별 발송 가능건수는 개인별로 적용된 단가를 기준으로 산출되며, "첫결제 이벤트"는 적용되지 않습니다.</li>
|
||||
</ul>
|
||||
|
||||
<div class="re_cont">
|
||||
<!--Request-->
|
||||
<div class="req_title">Request</div>
|
||||
<div class="box">
|
||||
<div class="text">
|
||||
<h4>Request</h4>
|
||||
<table>
|
||||
<caption>API Request Http Method, 프로토콜, HOST, Service Port 정보 테이블</caption>
|
||||
<colgroup>
|
||||
<col style="width:20%;">
|
||||
<col style="width:80%;">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th>Http Method</th>
|
||||
<td>POST</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>프로토콜</th>
|
||||
<td>HTTP/1.1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>HOST</th>
|
||||
<td>api.munjaon.co.kr</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Service Port</th>
|
||||
<td>443</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="type_table">
|
||||
<table>
|
||||
<caption>발송가능 건수 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption>
|
||||
<colgroup>
|
||||
<col style="width:20%;">
|
||||
<col style="width:45%;">
|
||||
<col style="width:25%">
|
||||
<col style="width:10%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>키</th>
|
||||
<th>설명</th>
|
||||
<th>타입</th>
|
||||
<th>필수</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="font_b">mberId</span></td>
|
||||
<td>사용자 ID</td>
|
||||
<td>String</td>
|
||||
<td><span class="select_o">O</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">accessKey</span></td>
|
||||
<td>인증용 API Key</td>
|
||||
<td>String</td>
|
||||
<td><span class="select_o">O</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table_info">
|
||||
<p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="title">[Example]</div>
|
||||
<div class="code_view">
|
||||
<p>{</p>
|
||||
<div class="indent">
|
||||
<p><span>"mberId"</span>:"String"</p>
|
||||
<p>,<span>"accessKey"</span>:"String"</p>
|
||||
</div>
|
||||
<p class="l_code">}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--// Request-->
|
||||
<!-- Response-->
|
||||
<div class="res_title">Response</div>
|
||||
<div class="type_table">
|
||||
<table>
|
||||
<caption>발송가능 건수 API Response 키 종류 및 설명, 타입 테이블</caption>
|
||||
<colgroup>
|
||||
<col style="width:20%;">
|
||||
<col style="width:60%;">
|
||||
<col style="width:20%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>키</th>
|
||||
<th>설명</th>
|
||||
<th>타입</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="font_b">resultCode</span></td>
|
||||
<td>성공 여부("0" 아니면 실패)</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">data</span></td>
|
||||
<td>결과값 객체(성공 : 데이터, 실패 : 메시지)</td>
|
||||
<td>Object</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].longPrice</span></td>
|
||||
<td>장문 단가</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].longSendPsbltEa</span></td>
|
||||
<td>장문 발송 가능 건수</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].mberMoney</span></td>
|
||||
<td>현재 보유 금액</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].message</span></td>
|
||||
<td>문자</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].picturePrice</span></td>
|
||||
<td>그림문자 단가</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].pictureSendPsbltEa</span></td>
|
||||
<td>그림문자 발송 가능 건수</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].shortPrice</span></td>
|
||||
<td>단문 단가</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="font_b">[data].shortSendPsbltEa</span></td>
|
||||
<td>단문 발송 가능 건수</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table_info">
|
||||
<p>※ JSON 객체로 응답합니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div>
|
||||
<div class="code_view">
|
||||
<p>{</p>
|
||||
<div class="indent">
|
||||
<p><span>"resultCode"</span>:"0"</p>
|
||||
<p>,<span>"data"</span>{</p>
|
||||
<div class="indent_t1">
|
||||
<p><span>"longPrice"</span>:"50"</p>
|
||||
<p>,<span>"longSendPsbltEa"</span>:"19651"</p>
|
||||
<p>,<span>"mberMoney"</span>:"982586.7"</p>
|
||||
<p>,<span>"message"</span>:null</p>
|
||||
<p>,<span>"picturePrice"</span>:"90"</p>
|
||||
<p>,<span>"pictureSendPsbltEa"</span>:"10917"</p>
|
||||
<p>,<span>"shortPrice"</span>:"18"</p>
|
||||
<p>,<span>"shortSendPsbltEa"</span>:"54588"</p>
|
||||
</div>
|
||||
<p>}</p>
|
||||
</div>
|
||||
<p class="l_code">}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div>
|
||||
<div class="code_view">
|
||||
<p>{</p>
|
||||
<div class="indent">
|
||||
<p><span>"resultCode"</span>:"5099"</p>
|
||||
<p>,<span>"data"</span>:"기타 시스템 오류"</p>
|
||||
</div>
|
||||
<p class="l_code">}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--// Response-->
|
||||
</div>
|
||||
@ -1,79 +0,0 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<script language=javascript>
|
||||
$(document).ready(function(){
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<style>
|
||||
|
||||
.padding_add > p
|
||||
{
|
||||
padding-left: 30px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.padding_add > div > p
|
||||
{
|
||||
padding-left: 60px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
<!-- content 영역 -->
|
||||
<div class="inner">
|
||||
<!-- send top -->
|
||||
<div class="send_top">
|
||||
|
||||
<c:import url="../top_tepMenu.jsp" /><!--// tab button -->
|
||||
|
||||
<!-- tab button -->
|
||||
<div class="api_guide_cont current" id="tab5_1">
|
||||
<div class="heading">
|
||||
<h2>REST API 설명</h2>
|
||||
</div>
|
||||
<div class="pay_tab_wrap">
|
||||
<!-- tab button -->
|
||||
<ul class="tabType1">
|
||||
<li class="tab active"><button type="button" onclick="TabType1(this,'1')">문자보내기</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'2')" id="btnEstimate">문자보내기(대량)</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'3')" id="btnEstimate3">전송내역조회</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'4')" id="btnEstimate4">전송결과조회(상세)</button></li>
|
||||
<li class="tab"><button type="button" onclick="TabType1(this,'5')" id="btnEstimate5">발송가능건수</button></li>
|
||||
</ul><!--// tab button -->
|
||||
</div>
|
||||
|
||||
<!-- 문자보내기 -->
|
||||
<!-- 문자보내기 -->
|
||||
<!-- 문자보내기 -->
|
||||
<div class="fee_cont current" id="tab1_1">
|
||||
<c:import url="./apiSpec_tab1.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 문자보내기(대량) -->
|
||||
<!-- 문자보내기(대량) -->
|
||||
<!-- 문자보내기(대량) -->
|
||||
<div class="fee_cont" id="tab1_2">
|
||||
<c:import url="./apiSpec_tab2.jsp" />
|
||||
</div>
|
||||
|
||||
<!-- 전송내역조회 -->
|
||||
<div class="fee_cont" id="tab1_3">
|
||||
<c:import url="./apiSpec_tab3.jsp" />
|
||||
</div>
|
||||
<!-- 전송결과조회(상세) -->
|
||||
<div class="fee_cont" id="tab1_4">
|
||||
<c:import url="./apiSpec_tab4.jsp" />
|
||||
</div>
|
||||
<!-- 발송가능건수 -->
|
||||
<div class="fee_cont" id="tab1_5">
|
||||
<c:import url="./apiSpec_tab5.jsp" />
|
||||
</div>
|
||||
</div>
|
||||
</div><!--// send top -->
|
||||
</div>
|
||||
@ -98,8 +98,8 @@ function customPopup(){
|
||||
|
||||
<ul class="tabType4">
|
||||
<li class="tab"><button type="button" class="goPage" id="intrdView" data-info="<c:url value="/web/api/intrdView.do" />">문자연동(API)소개</button></li>
|
||||
<li class="tab"><button type="button" class="goPage" id="apiSpec" data-info="<c:url value="/web/api/apiSpec.do" />">문자 사용안내</button></li>
|
||||
<li class="tab"><button type="button" class="goPage" id="apiAtSpec" data-info="<c:url value="/web/api/apiAtSpec.do" />">알림톡 사용안내</button></li>
|
||||
<li class="tab"><button type="button" class="goPage" id="apiSpec" data-info="<c:url value="/web/api/apiSpec.do" />">개발 가이드</button></li>
|
||||
<%-- <li class="tab"><button type="button" class="goPage" id="apiAtSpec" data-info="<c:url value="/web/api/apiAtSpec.do" />">알림톡 사용안내</button></li> --%>
|
||||
<li class="tab"><button type="button" class="goPage" id="examDown" data-info="<c:url value="/web/api/examDown.do" />">예제 다운로드</button></li>
|
||||
<li class="tab"><button type="button" class="goPage" id="appMgmt" data-info="<c:url value="/web/api/appMgmt.do" />" >신청/관리</button></li>
|
||||
</ul>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user