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
... | ... | @@ -5,6 +5,11 @@ |
| 5 | 5 |
<script language=javascript> |
| 6 | 6 |
$(document).ready(function(){
|
| 7 | 7 |
|
| 8 |
+ $('#download_btn').click(function(){
|
|
| 9 |
+ location.href="<c:out value='/sample_mjon/jsp_샘플_예제.zip' />"; |
|
| 10 |
+ }); |
|
| 11 |
+ |
|
| 12 |
+ |
|
| 8 | 13 |
}); |
| 9 | 14 |
|
| 10 | 15 |
</script> |
... | ... | @@ -36,56 +41,53 @@ |
| 36 | 41 |
아래의 예제를 참고하시면 보다 쉽게 문자온 RESTful API의 구현이 가능합니다. |
| 37 | 42 |
</br> |
| 38 | 43 |
|
| 39 |
- <p class="tType1_title">Example</p> |
|
| 40 |
- <!-- JSP --> |
|
| 41 |
- <ul class="clause_list"> |
|
| 42 |
- <li class="list_open on"> |
|
| 43 |
- <div class="clause_list_head"> |
|
| 44 |
- <div class="list_head_in"> |
|
| 45 |
- <span>JSP Example</span> |
|
| 46 |
- </div> |
|
| 47 |
- </div> |
|
| 48 |
- <div class="clause_list_body"> |
|
| 49 |
- <table class="refund_info"> |
|
| 50 |
- <colgroup> |
|
| 51 |
- <col style="width: 25%"> |
|
| 52 |
- <col style="width: auto;"> |
|
| 53 |
- </colgroup> |
|
| 54 |
- <tbody> |
|
| 55 |
- <tr> |
|
| 56 |
- <td>jsp_example_send_msg.jsp</td> |
|
| 57 |
- <td>문자보내기(여러명에게 동일한문자)</td> |
|
| 58 |
- </tr> |
|
| 59 |
- <tr> |
|
| 60 |
- <td>jsp_example_send_msgs.jsp</td> |
|
| 61 |
- <td>문자보내기(여러명에게 다른문자)</td> |
|
| 62 |
- </tr> |
|
| 63 |
- <tr> |
|
| 64 |
- <td>jsp_example_list.jsp</td> |
|
| 65 |
- <td>전송내역조회</td> |
|
| 66 |
- </tr> |
|
| 67 |
- <tr> |
|
| 68 |
- <td>jsp_example_detail_list.jsp</td> |
|
| 69 |
- <td>상세전송내역조회</td> |
|
| 70 |
- </tr> |
|
| 71 |
- <tr> |
|
| 72 |
- <td>jsp_example_remain.jsp</td> |
|
| 73 |
- <td>발송가능건수</td> |
|
| 74 |
- </tr> |
|
| 75 |
- |
|
| 76 |
- |
|
| 77 |
- |
|
| 78 |
- </tbody> |
|
| 79 |
- </table> |
|
| 80 |
- </div> |
|
| 81 |
- </li> |
|
| 82 |
- </ul> |
|
| 44 |
+ <p class="tType1_title">Example</p> |
|
| 45 |
+ <!-- JSP --> |
|
| 46 |
+ <ul class="clause_list"> |
|
| 47 |
+ <li class="list_open on"> |
|
| 48 |
+ <div class="clause_list_head"> |
|
| 49 |
+ <div class="list_head_in"> |
|
| 50 |
+ <span>JSP Example</span> |
|
| 51 |
+ </div> |
|
| 52 |
+ </div> |
|
| 53 |
+ <div class="clause_list_body"> |
|
| 54 |
+ <table class="refund_info"> |
|
| 55 |
+ <colgroup> |
|
| 56 |
+ <col style="width: 25%"> |
|
| 57 |
+ <col style="width: auto;"> |
|
| 58 |
+ </colgroup> |
|
| 59 |
+ <tbody> |
|
| 60 |
+ <tr> |
|
| 61 |
+ <td>jsp_example_send_msg_r1.jsp</td> |
|
| 62 |
+ <td>문자보내기(여러명에게 동일한문자)</td> |
|
| 63 |
+ </tr> |
|
| 64 |
+ <tr> |
|
| 65 |
+ <td>jsp_example_send_msgs_r1.jsp</td> |
|
| 66 |
+ <td>문자보내기(여러명에게 다른문자)</td> |
|
| 67 |
+ </tr> |
|
| 68 |
+ <tr> |
|
| 69 |
+ <td>jsp_example_hstry_r1.jsp</td> |
|
| 70 |
+ <td>전송내역조회</td> |
|
| 71 |
+ </tr> |
|
| 72 |
+ <tr> |
|
| 73 |
+ <td>jsp_example_hstry_detail_r1.jsp</td> |
|
| 74 |
+ <td>상세전송내역조회</td> |
|
| 75 |
+ </tr> |
|
| 76 |
+ <tr> |
|
| 77 |
+ <td>jsp_example_select_price_r1.jsp</td> |
|
| 78 |
+ <td>발송가능건수</td> |
|
| 79 |
+ </tr> |
|
| 80 |
+ </tbody> |
|
| 81 |
+ </table> |
|
| 82 |
+ </div> |
|
| 83 |
+ </li> |
|
| 84 |
+ </ul> |
|
| 83 | 85 |
|
| 84 |
- <span class="reqTxt4"> |
|
| 85 |
- <div class="mem_btnWrap2"> |
|
| 86 |
- <button type="button" style="width:50%;" class="mem_btn3" style="width: 100%;" id="sendMSG" onclick="return false;">JSP용 예제 다운받기</button> |
|
| 87 |
- </div> |
|
| 88 |
- </span> |
|
| 86 |
+ <span class="reqTxt4"> |
|
| 87 |
+ <div class="mem_btnWrap2"> |
|
| 88 |
+ <button type="button" class="mem_btn3" id="download_btn" style="width: 100%;" id="sendMSG" onclick="return false;">JSP용 예제 다운받기</button> |
|
| 89 |
+ </div> |
|
| 90 |
+ </span> |
|
| 89 | 91 |
|
| 90 | 92 |
</span> |
| 91 | 93 |
|
--- 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 @@ |
| 24 | 24 |
|
| 25 | 25 |
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요 |
| 26 | 26 |
//실제서비스용 |
| 27 |
-// final String mberId = "goodgkdus"; //문자온 로그인 아이디 |
|
| 28 |
-// final String apiKey = "12e749877379aa7426275414050694b953"; //발급받은 api key |
|
| 27 |
+// final String mberId = ""; //문자온 로그인 아이디 |
|
| 28 |
+// final String apiKey = ""; //발급받은 api key |
|
| 29 | 29 |
|
| 30 | 30 |
//테스트용 |
| 31 | 31 |
String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
|
... | ... | @@ -33,8 +33,8 @@ |
| 33 | 33 |
|
| 34 | 34 |
|
| 35 | 35 |
/******************** 전송요청 URL ********************/ |
| 36 |
- //final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstryDetail"; |
|
| 37 |
- final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; |
|
| 36 |
+ final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstryDetail"; |
|
| 37 |
+// final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; |
|
| 38 | 38 |
|
| 39 | 39 |
// String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail"; |
| 40 | 40 |
/**************** 발송가능건수 예제 ******************/ |
--- src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp
... | ... | @@ -33,10 +33,9 @@ |
| 33 | 33 |
|
| 34 | 34 |
|
| 35 | 35 |
/******************** 전송요청 URL ********************/ |
| 36 |
- //final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstry"; |
|
| 36 |
+ final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstry"; |
|
| 37 | 37 |
// final String apiUrl = "http://localhost:8088/api/inqry/hstry"; |
| 38 | 38 |
|
| 39 |
- String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstry"; // 전송요청 URL |
|
| 40 | 39 |
/**************** 발송가능건수 예제 ******************/ |
| 41 | 40 |
System.out.println("전체발송이력");
|
| 42 | 41 |
|
--- 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 @@ |
| 34 | 34 |
data : searchWebParam, |
| 35 | 35 |
|
| 36 | 36 |
success: function (returnData, status) {
|
| 37 |
+ console.log('returnData : ', returnData)
|
|
| 37 | 38 |
//alert(returnData.shortPrice); |
| 38 | 39 |
//alert(returnData.resultCode); |
| 39 | 40 |
//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
... | ... | @@ -33,8 +33,8 @@ |
| 33 | 33 |
|
| 34 | 34 |
|
| 35 | 35 |
/******************** 전송요청 URL ********************/ |
| 36 |
- final String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/selectPrice"; |
|
| 37 |
-// final String apiUrl = "http://localhost:8088/api/inqry/selectPrice"; |
|
| 36 |
+ final String apiUrl = "https://api.munjaon.co.kr/api/inqry/price"; |
|
| 37 |
+// final String apiUrl = "http://localhost:8088/api/inqry/price"; |
|
| 38 | 38 |
|
| 39 | 39 |
/**************** 발송가능건수 예제 ******************/ |
| 40 | 40 |
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
... | ... | @@ -24,7 +24,7 @@ |
| 24 | 24 |
|
| 25 | 25 |
/******************** 전송 요청 URL ********************/ |
| 26 | 26 |
//final String apiUrl = "http://localhost:8088/api/send/sendMsg"; |
| 27 |
- final String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsg"; //개발테스트용 URL |
|
| 27 |
+ final String apiUrl = "https://api.munjaon.co.kr/api/send/sendMsg"; //개발테스트용 URL |
|
| 28 | 28 |
//final String apiUrl = "https://api.munjaon.co.kr:9998/api/send/sendMsg"; //실제 서비스 URL |
| 29 | 29 |
|
| 30 | 30 |
//회원아이디, 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
... | ... | @@ -25,7 +25,7 @@ |
| 25 | 25 |
/******************** 전송 요청 URL ********************/ |
| 26 | 26 |
//String apiUrl = "http://localhost:8088/api/send/sendMsgs"; |
| 27 | 27 |
//final String apiUrl = "https://api.munjaon.co.kr:9998/api/send/sendMsg"; //실제 서비스 URL |
| 28 |
- String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsgs"; //개발테스트용 URL |
|
| 28 |
+ String apiUrl = "https://api.munjaon.co.kr/api/send/sendMsgs"; //개발테스트용 URL |
|
| 29 | 29 |
|
| 30 | 30 |
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용 |
| 31 | 31 |
//실제서비스용 |
+++ 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
... | ... | @@ -187,7 +187,7 @@ |
| 187 | 187 |
case "MYDATA": |
| 188 | 188 |
System.out.println("잔액|단가|발송가능건수");
|
| 189 | 189 |
sms_url = "http://localhost:8088/api/accessKey/myData"; // 전송요청 URL |
| 190 |
- sms_url = "http://localhost:8088/api/inqry/selectPrice"; // 전송요청 URL |
|
| 190 |
+ sms_url = "http://localhost:8088/api/inqry/price"; // 전송요청 URL |
|
| 191 | 191 |
break; |
| 192 | 192 |
|
| 193 | 193 |
default: |
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?