이호영 이호영 2023-06-22
feat : [API]발송가능건수 URI selectPrice -> price 로 수정 /// 예제 다운로드 완료
@9a8a45c112c2fb859d5c2887d4153f9a169af5ef
src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage4_r1.jsp
--- src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage4_r1.jsp
+++ src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage4_r1.jsp
@@ -5,6 +5,11 @@
 <script language=javascript>
 $(document).ready(function(){
 	
+	$('#download_btn').click(function(){
+		location.href="<c:out value='/sample_mjon/jsp_샘플_예제.zip' />";
+	});
+	
+	
 });
 
 </script>
@@ -36,56 +41,53 @@
 					아래의 예제를 참고하시면 보다 쉽게 문자온 RESTful API의 구현이 가능합니다.
 					</br>
 					
-				<p class="tType1_title">Example</p>
-				<!-- JSP -->
-				<ul class="clause_list">
-	                <li class="list_open on">
-	                    <div class="clause_list_head">
-	                        <div class="list_head_in">
-	                            <span>JSP Example</span>
-	                        </div>
-	                    </div>
-	                    <div class="clause_list_body">
-	                        <table class="refund_info">
-	                            <colgroup>
-	                                <col style="width: 25%">
-	                                <col style="width: auto;">
-	                            </colgroup>
-	                            <tbody>
-	                                <tr>
-	                                    <td>jsp_example_send_msg.jsp</td>
-	                                    <td>문자보내기(여러명에게 동일한문자)</td>
-	                                </tr>
-	                                <tr>
-	                                    <td>jsp_example_send_msgs.jsp</td>
-	                                    <td>문자보내기(여러명에게 다른문자)</td>
-	                                </tr>
-	                                <tr>
-	                                    <td>jsp_example_list.jsp</td>
-	                                    <td>전송내역조회</td>
-	                                </tr>
-	                                <tr>
-	                                    <td>jsp_example_detail_list.jsp</td>
-	                                    <td>상세전송내역조회</td>
-	                                </tr>
-	                                <tr>
-	                                    <td>jsp_example_remain.jsp</td>
-	                                    <td>발송가능건수</td>
-	                                </tr>
-	                                
-	                                
-	                                
-	                            </tbody>
-	                        </table> 
-	                    </div>
-	                </li>
-	            </ul>	
+					<p class="tType1_title">Example</p>
+					<!-- JSP -->
+					<ul class="clause_list">
+		                <li class="list_open on">
+		                    <div class="clause_list_head">
+		                        <div class="list_head_in">
+		                            <span>JSP Example</span>
+		                        </div>
+		                    </div>
+		                    <div class="clause_list_body">
+		                        <table class="refund_info">
+		                            <colgroup>
+		                                <col style="width: 25%">
+		                                <col style="width: auto;">
+		                            </colgroup>
+		                            <tbody>
+		                                <tr>
+		                                    <td>jsp_example_send_msg_r1.jsp</td>
+		                                    <td>문자보내기(여러명에게 동일한문자)</td>
+		                                </tr>
+		                                <tr>
+		                                    <td>jsp_example_send_msgs_r1.jsp</td>
+		                                    <td>문자보내기(여러명에게 다른문자)</td>
+		                                </tr>
+		                                <tr>
+		                                    <td>jsp_example_hstry_r1.jsp</td>
+		                                    <td>전송내역조회</td>
+		                                </tr>
+		                                <tr>
+		                                    <td>jsp_example_hstry_detail_r1.jsp</td>
+		                                    <td>상세전송내역조회</td>
+		                                </tr>
+		                                <tr>
+		                                    <td>jsp_example_select_price_r1.jsp</td>
+		                                    <td>발송가능건수</td>
+		                                </tr>
+		                            </tbody>
+		                        </table> 
+		                    </div>
+		                </li>
+		            </ul>	
 	            
-	            <span class="reqTxt4">
-	            	<div class="mem_btnWrap2">
-	            		<button type="button" style="width:50%;" class="mem_btn3" style="width: 100%;" id="sendMSG" onclick="return false;">JSP용 예제 다운받기</button>
-	            	</div>
-	            </span>	  
+		            <span class="reqTxt4">
+		            	<div class="mem_btnWrap2">
+		            		<button type="button" class="mem_btn3" id="download_btn" style="width: 100%;" id="sendMSG" onclick="return false;">JSP용 예제 다운받기</button>
+		            	</div>
+		            </span>	  
 	            
 	            </span>          			
 			
src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp
@@ -24,8 +24,8 @@
 		
 		//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
 		//실제서비스용
-// 		final String mberId		=	"goodgkdus";							//문자온 로그인 아이디
-// 		final String apiKey		=	"12e749877379aa7426275414050694b953";	//발급받은 api key
+// 		final String mberId		=	"";							//문자온 로그인 아이디
+// 		final String apiKey		=	"";	//발급받은 api key
 		
 		//테스트용
 		String mberId		= request.getParameter("p_mberId");			//문자온 로그인 아이디
@@ -33,8 +33,8 @@
 		
 	
 		/******************** 전송요청 URL ********************/
-		//final String apiUrl		=	"https://api.munjaon.co.kr/api/inqry/hstryDetail";
-		final String apiUrl		=	"http://localhost:8088/api/inqry/hstryDetail";
+		final String apiUrl		=	"https://api.munjaon.co.kr/api/inqry/hstryDetail";
+// 		final String apiUrl		=	"http://localhost:8088/api/inqry/hstryDetail";
 
 // 		String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail";
 		/**************** 발송가능건수 예제 ******************/
src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp
@@ -33,10 +33,9 @@
 		
 	
 		/******************** 전송요청 URL ********************/
-		//final String apiUrl		=	"https://api.munjaon.co.kr/api/inqry/hstry";
+		final String apiUrl		=	"https://api.munjaon.co.kr/api/inqry/hstry";
 // 		final String apiUrl		=	"http://localhost:8088/api/inqry/hstry";
 
-		String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstry"; // 전송요청 URL
 		/**************** 발송가능건수 예제 ******************/
 		System.out.println("전체발송이력");
 	
src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_select_price_form_r1.jsp
@@ -34,6 +34,7 @@
 		     			data : searchWebParam,
 
 						success: function (returnData, status) {
+							console.log('returnData : ', returnData)
 							//alert(returnData.shortPrice);
 							//alert(returnData.resultCode);
 							//alert(returnData.message);
src/main/webapp/sample_mjon/jsp_example_select_price_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_select_price_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_select_price_r1.jsp
@@ -33,8 +33,8 @@
 	
 		
 		/******************** 전송요청 URL ********************/
-		final String apiUrl		=	"https://apidev.munjaon.co.kr:9998/api/inqry/selectPrice";
-// 		final String apiUrl		=	"http://localhost:8088/api/inqry/selectPrice";
+		final String apiUrl		=	"https://api.munjaon.co.kr/api/inqry/price";
+// 		final String apiUrl		=	"http://localhost:8088/api/inqry/price";
         
 		/**************** 발송가능건수 예제 ******************/
 		System.out.println("잔액|단가|발송가능건수");
src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp
@@ -24,7 +24,7 @@
 		
 		/******************** 전송 요청 URL  ********************/
 		//final String apiUrl		=	"http://localhost:8088/api/send/sendMsg";
-		final String apiUrl		=	"https://apidev.munjaon.co.kr:9998/api/send/sendMsg";	//개발테스트용 URL
+		final String apiUrl		=	"https://api.munjaon.co.kr/api/send/sendMsg";	//개발테스트용 URL
 		//final String apiUrl		=	"https://api.munjaon.co.kr:9998/api/send/sendMsg";	//실제 서비스 URL
 		
 		//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용
src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp
--- src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp
@@ -25,7 +25,7 @@
 		/******************** 전송 요청 URL  ********************/
 		//String apiUrl = "http://localhost:8088/api/send/sendMsgs";
 		//final String apiUrl		=	"https://api.munjaon.co.kr:9998/api/send/sendMsg";	//실제 서비스 URL
-		String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsgs"; //개발테스트용 URL
+		String apiUrl = "https://api.munjaon.co.kr/api/send/sendMsgs"; //개발테스트용 URL
 		
 		//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용
 		//실제서비스용
 
src/main/webapp/sample_mjon/jsp_샘플_예제.zip (Binary) (added)
+++ src/main/webapp/sample_mjon/jsp_샘플_예제.zip
Binary file is not shown
src/main/webapp/sendRESTAPI_test_r1_send.jsp
--- src/main/webapp/sendRESTAPI_test_r1_send.jsp
+++ src/main/webapp/sendRESTAPI_test_r1_send.jsp
@@ -187,7 +187,7 @@
         case "MYDATA":
             System.out.println("잔액|단가|발송가능건수");
             sms_url = "http://localhost:8088/api/accessKey/myData"; // 전송요청 URL
-            sms_url = "http://localhost:8088/api/inqry/selectPrice"; // 전송요청 URL
+            sms_url = "http://localhost:8088/api/inqry/price"; // 전송요청 URL
             break;
             
         default:
Add a comment
List