feat: api 샘플-문자온 페이지 요청 URL local -> apidev 로 수정
@9c797395ce9010e126311fa0ae4a65dcd709c219
--- src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage3_r1_tab2.jsp
+++ src/main/webapp/WEB-INF/jsp/web/user/sendRESTAPI_infoPage3_r1_tab2.jsp
... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 |
|
| 5 | 5 |
<p class="tType1_title">문자보내기(대량)</p> |
| 6 | 6 |
<span class="reqTxt4"> |
| 7 |
- 동일한 내용의 문자를 컴마(,)로 분기하여 동시 1천명에게 전송하실 수 있습니다. |
|
| 7 |
+ 다른 내용의 문자를 동시에 100명에게 전송하실 수 있습니다. |
|
| 8 | 8 |
</br> |
| 9 | 9 |
발신번호는 사이트내에서 미리 등록된 번호만 사용하실 수 있습니다. |
| 10 | 10 |
</br> |
... | ... | @@ -14,6 +14,9 @@ |
| 14 | 14 |
</br> |
| 15 | 15 |
|
| 16 | 16 |
|
| 17 |
+ <p class="tType1_title"> |
|
| 18 |
+ <img src="/publish/images/content/icon_fee1.png" alt="문자이미지"> [Request] |
|
| 19 |
+ </p> |
|
| 17 | 20 |
<ul class="clause_list"> |
| 18 | 21 |
<li class="list_open on"> |
| 19 | 22 |
<div class="clause_list_head"> |
... | ... | @@ -53,9 +56,6 @@ |
| 53 | 56 |
HTTPS 프로토콜을 사용하여 POST로 요청합니다. |
| 54 | 57 |
</span> |
| 55 | 58 |
|
| 56 |
- <p class="tType1_title"> |
|
| 57 |
- <img src="/publish/images/content/icon_fee1.png" alt="문자이미지"> 문자 |
|
| 58 |
- </p> |
|
| 59 | 59 |
<table class="tType2"> |
| 60 | 60 |
<caption></caption> |
| 61 | 61 |
<colgroup> |
... | ... | @@ -92,28 +92,37 @@ |
| 92 | 92 |
<td>O</td> |
| 93 | 93 |
</tr> |
| 94 | 94 |
<tr> |
| 95 |
- <th>callToList</th> |
|
| 96 |
- <td>수신자 번호 (콤마(,) 기준으로 입력)</td> |
|
| 97 |
- <td>String</td> |
|
| 98 |
- <td>O</td> |
|
| 99 |
- </tr> |
|
| 100 |
- <tr> |
|
| 101 |
- <th>smsTxt</th> |
|
| 102 |
- <td>메세지 내용</td> |
|
| 103 |
- <td>String (1~2,000Byte)</td> |
|
| 104 |
- <td>O</td> |
|
| 105 |
- </tr> |
|
| 106 |
- <tr> |
|
| 107 |
- <th>nameStr</th> |
|
| 108 |
- <td>메세지 내용에 [*이름*]이 있으면 치환용 이름 입력</td> |
|
| 109 |
- <td>String</td> |
|
| 110 |
- <td>X</td> |
|
| 111 |
- </tr> |
|
| 112 |
- <tr> |
|
| 113 | 95 |
<th>test_yn</th> |
| 114 | 96 |
<td>테스트 데이터 여부</td> |
| 115 | 97 |
<td>String</td> |
| 116 | 98 |
<td>X</td> |
| 99 |
+ </tr> |
|
| 100 |
+ <tr> |
|
| 101 |
+ <th>callTo_1</th> |
|
| 102 |
+ <td>수신자 번호 1</td> |
|
| 103 |
+ <td>String</td> |
|
| 104 |
+ <td>O</td> |
|
| 105 |
+ </tr> |
|
| 106 |
+ <tr> |
|
| 107 |
+ <th>smsTxt_1</th> |
|
| 108 |
+ <td>메세지 내용 1</td> |
|
| 109 |
+ <td>String (1~2,000Byte)</td> |
|
| 110 |
+ <td>O</td> |
|
| 111 |
+ </tr> |
|
| 112 |
+ <tr> |
|
| 113 |
+ <td colspan="4">ㆍㆍㆍㆍ </td> |
|
| 114 |
+ </tr> |
|
| 115 |
+ <tr> |
|
| 116 |
+ <th>callTo_100</th> |
|
| 117 |
+ <td>수신자 번호 100</td> |
|
| 118 |
+ <td>String</td> |
|
| 119 |
+ <td>O</td> |
|
| 120 |
+ </tr> |
|
| 121 |
+ <tr> |
|
| 122 |
+ <th>smsTxt_100</th> |
|
| 123 |
+ <td>메세지 내용 100</td> |
|
| 124 |
+ <td>String (1~2,000Byte)</td> |
|
| 125 |
+ <td>O</td> |
|
| 117 | 126 |
</tr> |
| 118 | 127 |
</tbody> |
| 119 | 128 |
</table> |
... | ... | @@ -124,7 +133,7 @@ |
| 124 | 133 |
<li class="list_open on"> |
| 125 | 134 |
<div class="clause_list_head"> |
| 126 | 135 |
<div class="list_head_in"> |
| 127 |
- <span>Request</span> |
|
| 136 |
+ <span>Example</span> |
|
| 128 | 137 |
</div> |
| 129 | 138 |
</div> |
| 130 | 139 |
<div class="clause_list_body"> |
... | ... | @@ -135,15 +144,15 @@ |
| 135 | 144 |
<tbody> |
| 136 | 145 |
<tr> |
| 137 | 146 |
<td class="padding_add"> |
| 138 |
- {<br />
|
|
| 139 |
- <p>"mberId":"String"</p> |
|
| 140 |
- <p>,"accessKey":"String"</p> |
|
| 141 |
- <p>,"callFrom":"String"</p> |
|
| 142 |
- <p>,"callToList":"String"</p> |
|
| 143 |
- <p>,"smsTxt":"String"</p> |
|
| 144 |
- <p>,"nameStr":"String"</p> |
|
| 145 |
- <p>,"callFrom":"String"</p> |
|
| 146 |
- <p>,"test_yn":"( YS | YF )"</p> |
|
| 147 |
+ {
|
|
| 148 |
+ <p>"mberId":"홍길동"</p> |
|
| 149 |
+ <p>,"accessKey":"XXXXXXXXXXXXXX414050694b953"</p> |
|
| 150 |
+ <p>,"callFrom":"01012341234"</p> |
|
| 151 |
+ <p>,"test_yn":""</p> |
|
| 152 |
+ <p>,"callTo_1":"01011111111"</p> |
|
| 153 |
+ <p>,"smsTxt_1":"문자 테스트 1"</p> |
|
| 154 |
+ <p>,"callTo_2":"01022222222"</p> |
|
| 155 |
+ <p>,"smsTxt_2":"문자 테스트 2"</p> |
|
| 147 | 156 |
} |
| 148 | 157 |
</td> |
| 149 | 158 |
</tr> |
... | ... | @@ -152,3 +161,127 @@ |
| 152 | 161 |
</div> |
| 153 | 162 |
</li> |
| 154 | 163 |
</ul> |
| 164 |
+ |
|
| 165 |
+ |
|
| 166 |
+ <p class="tType1_title"> |
|
| 167 |
+ <img src="/publish/images/content/icon_fee1.png" alt="문자이미지"> [Response] |
|
| 168 |
+ </p> |
|
| 169 |
+ <span class="reqTxt4"> |
|
| 170 |
+ JSON 객체로 응답 합니다. |
|
| 171 |
+ </span> |
|
| 172 |
+ <table class="tType2"> |
|
| 173 |
+ <caption></caption> |
|
| 174 |
+ <colgroup> |
|
| 175 |
+ <col style="width: 13%;"> |
|
| 176 |
+ <col style="width: auto;"> |
|
| 177 |
+ <col style="width: 20%;"> |
|
| 178 |
+ </colgroup> |
|
| 179 |
+ <thead> |
|
| 180 |
+ <tr> |
|
| 181 |
+ <th>키</th> |
|
| 182 |
+ <th>설명</th> |
|
| 183 |
+ <th>타입</th> |
|
| 184 |
+ </tr> |
|
| 185 |
+ </thead> |
|
| 186 |
+ <tbody> |
|
| 187 |
+ <tr> |
|
| 188 |
+ <th>resultCode</th> |
|
| 189 |
+ <td>성공 여부 ( "0" 아니면 실패 )</td> |
|
| 190 |
+ <td>String</td> |
|
| 191 |
+ </tr> |
|
| 192 |
+ <tr> |
|
| 193 |
+ <th>data</th> |
|
| 194 |
+ <td>결과값 객체 ( 성공 : 데이터, 실패 : 메세지 )</td> |
|
| 195 |
+ <td>Object</td> |
|
| 196 |
+ </tr> |
|
| 197 |
+ <tr> |
|
| 198 |
+ <th>[data].msgGroupId</th> |
|
| 199 |
+ <td>메세지 그룹 ID</td> |
|
| 200 |
+ <td>String</td> |
|
| 201 |
+ </tr> |
|
| 202 |
+ <tr> |
|
| 203 |
+ <th>[data].msgType</th> |
|
| 204 |
+ <td>메세지 타입 ( 4: 단문, 5: 장문 )</td> |
|
| 205 |
+ <td>String</td> |
|
| 206 |
+ </tr> |
|
| 207 |
+ <tr> |
|
| 208 |
+ <th>[data].blockCnt</th> |
|
| 209 |
+ <td>수신거부 건수</td> |
|
| 210 |
+ <td>String</td> |
|
| 211 |
+ </tr> |
|
| 212 |
+ <tr> |
|
| 213 |
+ <th>[data].failCnt</th> |
|
| 214 |
+ <td>전송실패 건수</td> |
|
| 215 |
+ <td>String</td> |
|
| 216 |
+ </tr> |
|
| 217 |
+ <tr> |
|
| 218 |
+ <th>[data].successCnt</th> |
|
| 219 |
+ <td>성공 건수</td> |
|
| 220 |
+ <td>String</td> |
|
| 221 |
+ </tr> |
|
| 222 |
+ </tbody> |
|
| 223 |
+ </table> |
|
| 224 |
+ |
|
| 225 |
+ <span class="reqTxt4">* 성공 예시</span> |
|
| 226 |
+ <ul class="clause_list"> |
|
| 227 |
+ <li class="list_open on"> |
|
| 228 |
+ <div class="clause_list_head"> |
|
| 229 |
+ <div class="list_head_in"> |
|
| 230 |
+ <span>Example</span> |
|
| 231 |
+ </div> |
|
| 232 |
+ </div> |
|
| 233 |
+ <div class="clause_list_body"> |
|
| 234 |
+ <table class=""> |
|
| 235 |
+ <colgroup> |
|
| 236 |
+ <col style="width: auto;"> |
|
| 237 |
+ </colgroup> |
|
| 238 |
+ <tbody> |
|
| 239 |
+ <tr> |
|
| 240 |
+ <td class="padding_add"> |
|
| 241 |
+ {
|
|
| 242 |
+ <p>"resultCode":"0"</p> |
|
| 243 |
+ <p>, "data":[</p> |
|
| 244 |
+ <div> |
|
| 245 |
+ <p>"msgGroupId":"MSGGID_0000000000000"</p> |
|
| 246 |
+ <p>, "msgType":"4"</p> |
|
| 247 |
+ <p>, "blockCnt":"0"</p> |
|
| 248 |
+ <p>, "failCnt":"0"</p> |
|
| 249 |
+ <p>, "successCnt":"3"</p> |
|
| 250 |
+ </div> |
|
| 251 |
+ <p>]</p> |
|
| 252 |
+ } |
|
| 253 |
+ </td> |
|
| 254 |
+ </tr> |
|
| 255 |
+ </tbody> |
|
| 256 |
+ </table> |
|
| 257 |
+ </div> |
|
| 258 |
+ </li> |
|
| 259 |
+ </ul> |
|
| 260 |
+ <span class="reqTxt4">* 실패 예시</span> |
|
| 261 |
+ <ul class="clause_list"> |
|
| 262 |
+ <li class="list_open on"> |
|
| 263 |
+ <div class="clause_list_head"> |
|
| 264 |
+ <div class="list_head_in"> |
|
| 265 |
+ <span>Example</span> |
|
| 266 |
+ </div> |
|
| 267 |
+ </div> |
|
| 268 |
+ <div class="clause_list_body"> |
|
| 269 |
+ <table class=""> |
|
| 270 |
+ <colgroup> |
|
| 271 |
+ <col style="width: auto;"> |
|
| 272 |
+ </colgroup> |
|
| 273 |
+ <tbody> |
|
| 274 |
+ <tr> |
|
| 275 |
+ <td class="padding_add"> |
|
| 276 |
+ {
|
|
| 277 |
+ <p>"resultCode":"1040"</p> |
|
| 278 |
+ <p>,"data":"치환 데이터 오류"</p> |
|
| 279 |
+ } |
|
| 280 |
+ </td> |
|
| 281 |
+ </tr> |
|
| 282 |
+ </tbody> |
|
| 283 |
+ </table> |
|
| 284 |
+ </div> |
|
| 285 |
+ </li> |
|
| 286 |
+ </ul> |
|
| 287 |
+ |
--- src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp
... | ... | @@ -34,8 +34,9 @@ |
| 34 | 34 |
|
| 35 | 35 |
/******************** 전송요청 URL ********************/ |
| 36 | 36 |
//final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstryDetail"; |
| 37 |
- final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; |
|
| 38 |
- |
|
| 37 |
+// final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; |
|
| 38 |
+ |
|
| 39 |
+ String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail"; |
|
| 39 | 40 |
/**************** 발송가능건수 예제 ******************/ |
| 40 | 41 |
System.out.println("상세발송이력");
|
| 41 | 42 |
|
--- src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp
... | ... | @@ -34,8 +34,9 @@ |
| 34 | 34 |
|
| 35 | 35 |
/******************** 전송요청 URL ********************/ |
| 36 | 36 |
//final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstry"; |
| 37 |
- final String apiUrl = "http://localhost:8088/api/inqry/hstry"; |
|
| 38 |
- |
|
| 37 |
+// final String apiUrl = "http://localhost:8088/api/inqry/hstry"; |
|
| 38 |
+ |
|
| 39 |
+ String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstry"; // 전송요청 URL |
|
| 39 | 40 |
/**************** 발송가능건수 예제 ******************/ |
| 40 | 41 |
System.out.println("전체발송이력");
|
| 41 | 42 |
|
--- 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://api.munjaon.co.kr/api/inqry/selectPrice"; |
|
| 37 |
- final String apiUrl = "http://localhost:8088/api/inqry/selectPrice"; |
|
| 36 |
+ final String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/selectPrice"; |
|
| 37 |
+// final String apiUrl = "http://localhost:8088/api/inqry/selectPrice"; |
|
| 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
... | ... | @@ -41,8 +41,9 @@ |
| 41 | 41 |
//String sms_url = "https://apis.aligo.in/send/"; // 전송요청 URL |
| 42 | 42 |
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessTest/Test"; // 전송요청 URL |
| 43 | 43 |
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessKey/SendMsg"; // 전송요청 URL |
| 44 |
- String apiUrl = "http://localhost:8088/api/send/sendMsg"; // 전송요청 URL |
|
| 45 |
- |
|
| 44 |
+ |
|
| 45 |
+// final String apiUrl = "http://localhost:8088/api/api/send/sendMsg"; |
|
| 46 |
+ final String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsg"; |
|
| 46 | 47 |
|
| 47 | 48 |
Map<String, String> params = new HashMap<String, String>(); |
| 48 | 49 |
/******************** 인증정보 ********************/ |
--- src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp
+++ src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp
... | ... | @@ -18,82 +18,81 @@ |
| 18 | 18 |
<%@ page language="java" contentType="text/html; charset=utf-8 " pageEncoding="utf-8"%> |
| 19 | 19 |
<% |
| 20 | 20 |
try{
|
| 21 |
- //기본 설정값 |
|
| 21 |
+ //기본 ì¤ì ê° |
|
| 22 | 22 |
//final String encodingType = "utf-8"; |
| 23 | 23 |
final String encodingType = "UTF-8"; |
| 24 | 24 |
final String boundary = "____boundary____"; |
| 25 | 25 |
|
| 26 |
- //회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요 |
|
| 27 |
- //실제서비스용 |
|
| 28 |
- //final String mberId = "goodgkdus"; //문자온 로그인 아이디 |
|
| 29 |
- //final String apiKey = "12e749877379aa7426275414050694b953"; //발급받은 api key |
|
| 26 |
+ //íììì´ë, APIKEY - ë³´ìì ìí´ ì¤ì ìë¹ì¤ ììë ì´ê³³ì mberIdì apiKey ê°ì ì ì´ì ì¬ì©í´ì£¼ì¸ì |
|
| 27 |
+ //ì¤ì ìë¹ì¤ì© |
|
| 28 |
+ //final String mberId = "goodgkdus"; //문ìì¨ ë¡ê·¸ì¸ ìì´ë |
|
| 29 |
+ //final String apiKey = "12e749877379aa7426275414050694b953"; //ë°ê¸ë°ì api key |
|
| 30 | 30 |
|
| 31 |
- //테스트용 |
|
| 32 |
- String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
|
|
| 33 |
- String apiKey = request.getParameter("p_apiKey"); //발급받은 api key
|
|
| 31 |
+ //í ì¤í¸ì© |
|
| 32 |
+ String mberId = request.getParameter("p_mberId"); //문ìì¨ ë¡ê·¸ì¸ ìì´ë
|
|
| 33 |
+ String apiKey = request.getParameter("p_apiKey"); //ë°ê¸ë°ì api key
|
|
| 34 | 34 |
|
| 35 | 35 |
|
| 36 |
- /**************** 문자전송하기 예제 ******************/ |
|
| 37 |
- /* "result_code":결과코드,"message":결과문구, */ |
|
| 38 |
- /* "msg_id":메세지ID,"error_cnt":에러갯수,"success_cnt":성공갯수 */ |
|
| 39 |
- /* 동일내용 > 전송용 입니다. |
|
| 40 |
- /******************** 인증정보 ********************/ |
|
| 41 |
- //String sms_url = "https://apis.aligo.in/send/"; // 전송요청 URL |
|
| 42 |
- //String sms_url = "https://api.munjaon.co.kr:9998/api/accessTest/Test"; // 전송요청 URL |
|
| 43 |
- //String sms_url = "https://api.munjaon.co.kr:9998/api/accessKey/SendMsg"; // 전송요청 URL |
|
| 44 |
- String apiUrl = "http://localhost:8088/api/send/sendMsgs"; // 전송요청 URL |
|
| 45 |
- |
|
| 36 |
+ /**************** 문ìì ì¡í기 ìì ******************/ |
|
| 37 |
+ /* "result_code":ê²°ê³¼ì½ë,"message":결과문구, */ |
|
| 38 |
+ /* "msg_id":ë©ì¸ì§ID,"error_cnt":ìë¬ê°¯ì,"success_cnt":ì±ê³µê°¯ì */ |
|
| 39 |
+ /* ëì¼ë´ì© > ì ì¡ì© ì ëë¤. |
|
| 40 |
+ /******************** ì¸ì¦ì ë³´ ********************/ |
|
| 41 |
+ //String sms_url = "https://apis.aligo.in/send/"; // ì ì¡ìì² URL |
|
| 42 |
+ //String sms_url = "https://api.munjaon.co.kr:9998/api/accessTest/Test"; // ì ì¡ìì² URL |
|
| 43 |
+ //String sms_url = "https://api.munjaon.co.kr:9998/api/accessKey/SendMsg"; // ì ì¡ìì² URL |
|
| 44 |
+// String apiUrl = "http://localhost:8088/api/send/sendMsgs"; // ì ì¡ìì² URL |
|
| 45 |
+ |
|
| 46 |
+ String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsgs"; // 전송요청 URL |
|
| 46 | 47 |
|
| 47 | 48 |
Map<String, String> params = new HashMap<String, String>(); |
| 48 |
- params.put("mberId", mberId); // SMS 아이디
|
|
| 49 |
- params.put("accessKey", apiKey); //인증키
|
|
| 50 |
- /******************** 인증정보 ********************/ |
|
| 49 |
+ params.put("mberId", mberId); // SMS ìì´ë
|
|
| 50 |
+ params.put("accessKey", apiKey); //ì¸ì¦í¤
|
|
| 51 |
+ /******************** ì¸ì¦ì ë³´ ********************/ |
|
| 51 | 52 |
|
| 52 | 53 |
|
| 53 |
- //임시 - 테스트용 시작 |
|
| 54 |
- //String p_mberId = request.getParameter("p_mberId"); //발신번호
|
|
| 55 |
- //String p_accessKey = request.getParameter("p_accessKey"); //수신번호
|
|
| 56 |
- //sms.put("mberId", p_mberId); // SMS 아이디
|
|
| 57 |
- //sms.put("accessKey", p_accessKey); //인증키
|
|
| 58 |
- //임시 - 테스트용 끝 |
|
| 59 |
- /******************** 전송정보 ********************/ |
|
| 60 |
- //전달 받은 값 |
|
| 61 |
- //필수값 |
|
| 62 |
- String p_callFrom = request.getParameter("p_callFrom"); //발신번호
|
|
| 63 |
- String p_callTo_1 = request.getParameter("p_callTo_1"); //수신번호
|
|
| 64 |
- //String p_eachPrice = request.getParameter("p_eachPrice"); //전송문자 개별가격
|
|
| 65 |
- //String p_fileCnt = request.getParameter("p_fileCnt"); //첨부파일갯수
|
|
| 66 |
- //String p_sPrice = request.getParameter("p_sPrice"); //단문문자단가
|
|
| 67 |
- //String p_totPrice = request.getParameter("p_totPrice"); //총결제금액
|
|
| 68 |
- //String p_txtReplYn = request.getParameter("p_txtReplYn"); //치환문자 여부 Y//N
|
|
| 69 |
- //String p_txtReplYn = "N"; //치환문자 여부 - 초기 지원안함 |
|
| 70 |
- //String p_msgType = request.getParameter("p_msgType"); //문자타입 4-단문,5-URL,6-MMS,7-BARCODE,8-카카오알림톡
|
|
| 71 |
- //String p_msgKind = request.getParameter("p_msgKind"); //N-일반,A-광고,C-선거
|
|
| 72 |
- //String p_msgKind = "N"; //N-일반,A-광고,C-선거 - 초기 지원안함 |
|
| 73 |
- String p_smsTxt_1 = request.getParameter("p_smsTxt_1"); //SMS용 메시지본문
|
|
| 74 |
- String p_testYn = request.getParameter("p_testYn"); //테스트데이터여부 '', 'YF', 'YS'
|
|
| 75 |
- //String p_nameStr_1 = request.getParameter("p_nameStr_1"); //치환문자
|
|
| 54 |
+ //ìì - í ì¤í¸ì© ìì |
|
| 55 |
+ //String p_mberId = request.getParameter("p_mberId"); //ë°ì ë²í¸
|
|
| 56 |
+ //String p_accessKey = request.getParameter("p_accessKey"); //ìì ë²í¸
|
|
| 57 |
+ //sms.put("mberId", p_mberId); // SMS ìì´ë
|
|
| 58 |
+ //sms.put("accessKey", p_accessKey); //ì¸ì¦í¤
|
|
| 59 |
+ //ìì - í ì¤í¸ì© ë |
|
| 60 |
+ /******************** ì ì¡ì ë³´ ********************/ |
|
| 61 |
+ //ì ë¬ ë°ì ê° |
|
| 62 |
+ //íìê° |
|
| 63 |
+ String p_callFrom = request.getParameter("p_callFrom"); //ë°ì ë²í¸
|
|
| 64 |
+ String p_callTo_1 = request.getParameter("p_callTo_1"); //ìì ë²í¸
|
|
| 65 |
+ //String p_eachPrice = request.getParameter("p_eachPrice"); //ì ì¡ë¬¸ì ê°ë³ê°ê²©
|
|
| 66 |
+ //String p_fileCnt = request.getParameter("p_fileCnt"); //첨ë¶íì¼ê°¯ì
|
|
| 67 |
+ //String p_sPrice = request.getParameter("p_sPrice"); //ë¨ë¬¸ë¬¸ìë¨ê°
|
|
| 68 |
+ //String p_totPrice = request.getParameter("p_totPrice"); //ì´ê²°ì ê¸ì¡
|
|
| 69 |
+ //String p_txtReplYn = request.getParameter("p_txtReplYn"); //ì¹í문ì ì¬ë¶ Y//N
|
|
| 70 |
+ //String p_txtReplYn = "N"; //ì¹í문ì ì¬ë¶ - ì´ê¸° ì§ììí¨ |
|
| 71 |
+ //String p_msgType = request.getParameter("p_msgType"); //문ìíì
4-ë¨ë¬¸,5-URL,6-MMS,7-BARCODE,8-ì¹´ì¹´ì¤ì림í¡
|
|
| 72 |
+ //String p_msgKind = request.getParameter("p_msgKind"); //N-ì¼ë°,A-ê´ê³ ,C-ì ê±°
|
|
| 73 |
+ //String p_msgKind = "N"; //N-ì¼ë°,A-ê´ê³ ,C-ì ê±° - ì´ê¸° ì§ììí¨ |
|
| 74 |
+ String p_smsTxt_1 = request.getParameter("p_smsTxt_1"); //SMSì© ë©ìì§ë³¸ë¬¸
|
|
| 75 |
+ //String p_nameStr_1 = request.getParameter("p_nameStr_1"); //ì¹í문ì
|
|
| 76 | 76 |
|
| 77 |
- //선택값 |
|
| 78 |
- //String p_mmsPrice = request.getParameter("p_mmsPrice"); //mms단가
|
|
| 79 |
- //String p_mPrice = request.getParameter("p_mPrice"); //장문문자단가
|
|
| 80 |
- //String p_spamStatus = request.getParameter("p_spamStatus"); //스팸문자 유무
|
|
| 77 |
+ //ì íê° |
|
| 78 |
+ //String p_mmsPrice = request.getParameter("p_mmsPrice"); //mmsë¨ê°
|
|
| 79 |
+ //String p_mPrice = request.getParameter("p_mPrice"); //ì¥ë¬¸ë¬¸ìë¨ê°
|
|
| 80 |
+ //String p_spamStatus = request.getParameter("p_spamStatus"); //ì¤í¸ë¬¸ì ì 무
|
|
| 81 | 81 |
|
| 82 |
- //예약문자의 경우(선택값) |
|
| 83 |
- //String p_reserveYn = request.getParameter("p_reserveYn"); //예약문자 여부 N or Y
|
|
| 84 |
- //String p_divideCnt = request.getParameter("p_divideCnt"); //분할문자 건수
|
|
| 85 |
- //String p_divideTime = request.getParameter("p_divideTime"); //분할문자 간격
|
|
| 86 |
- //String p_reqDate = request.getParameter("p_reqDate"); //예약시간
|
|
| 82 |
+ //ìì½ë¬¸ìì ê²½ì°(ì íê°) |
|
| 83 |
+ //String p_reserveYn = request.getParameter("p_reserveYn"); //ìì½ë¬¸ì ì¬ë¶ N or Y
|
|
| 84 |
+ //String p_divideCnt = request.getParameter("p_divideCnt"); //ë¶í 문ì ê±´ì
|
|
| 85 |
+ //String p_divideTime = request.getParameter("p_divideTime"); //ë¶í 문ì ê°ê²©
|
|
| 86 |
+ //String p_reqDate = request.getParameter("p_reqDate"); //ìì½ìê°
|
|
| 87 | 87 |
|
| 88 | 88 |
|
| 89 |
- //추가 전송 데이터 |
|
| 90 |
- params.put("callFrom" , p_callFrom); //발신번호
|
|
| 91 |
- params.put("test_yn" , p_testYn); //테스트 여부
|
|
| 89 |
+ //ì¶ê° ì ì¡ ë°ì´í° |
|
| 90 |
+ params.put("callFrom" , p_callFrom); //ë°ì ë²í¸
|
|
| 92 | 91 |
|
| 93 |
- //params.put("callTo_1" , p_callTo_1); //수신번호
|
|
| 94 |
- //params.put("eachPrice" , p_eachPrice); //전송문자 개별가격
|
|
| 95 |
- //params.put("sPrice" , p_sPrice); //단문문자단가
|
|
| 96 |
- //params.put("smsTxt_1" , p_smsTxt_1); //SMS용 메시지본문
|
|
| 92 |
+ //params.put("callTo_1" , p_callTo_1); //ìì ë²í¸
|
|
| 93 |
+ //params.put("eachPrice" , p_eachPrice); //ì ì¡ë¬¸ì ê°ë³ê°ê²©
|
|
| 94 |
+ //params.put("sPrice" , p_sPrice); //ë¨ë¬¸ë¬¸ìë¨ê°
|
|
| 95 |
+ //params.put("smsTxt_1" , p_smsTxt_1); //SMSì© ë©ìì§ë³¸ë¬¸
|
|
| 97 | 96 |
|
| 98 | 97 |
|
| 99 | 98 |
for (int i=1;i<101;i++){
|
... | ... | @@ -103,8 +102,8 @@ |
| 103 | 102 |
String s_callTo = "callTo_"+Integer.toString(i); |
| 104 | 103 |
String s_smsTxt = "smsTxt_"+Integer.toString(i); |
| 105 | 104 |
|
| 106 |
- p_callTo_1 = request.getParameter(p_callTo); //SMS용 메시지본문 |
|
| 107 |
- p_smsTxt_1 = request.getParameter(p_smsTxt); //SMS용 메시지본문 |
|
| 105 |
+ p_callTo_1 = request.getParameter(p_callTo); //SMSì© ë©ìì§ë³¸ë¬¸ |
|
| 106 |
+ p_smsTxt_1 = request.getParameter(p_smsTxt); //SMSì© ë©ìì§ë³¸ë¬¸ |
|
| 108 | 107 |
|
| 109 | 108 |
|
| 110 | 109 |
System.out.println("======i=====");
|
... | ... | @@ -117,10 +116,10 @@ |
| 117 | 116 |
&& !"".equals(p_callTo_1) |
| 118 | 117 |
&& !"".equals(p_smsTxt_1) |
| 119 | 118 |
){
|
| 120 |
- params.put(s_callTo, p_callTo_1); //수신번호 |
|
| 121 |
- //params.put("eachPrice" , p_eachPrice); //전송문자 개별가격
|
|
| 122 |
- //params.put("sPrice" , p_sPrice); //단문문자단가
|
|
| 123 |
- params.put(s_smsTxt, p_smsTxt_1); //SMS용 메시지본문 |
|
| 119 |
+ params.put(s_callTo, p_callTo_1); //ìì ë²í¸ |
|
| 120 |
+ //params.put("eachPrice" , p_eachPrice); //ì ì¡ë¬¸ì ê°ë³ê°ê²©
|
|
| 121 |
+ //params.put("sPrice" , p_sPrice); //ë¨ë¬¸ë¬¸ìë¨ê°
|
|
| 122 |
+ params.put(s_smsTxt, p_smsTxt_1); //SMSì© ë©ìì§ë³¸ë¬¸ |
|
| 124 | 123 |
} |
| 125 | 124 |
} |
| 126 | 125 |
|
... | ... | @@ -135,7 +134,7 @@ |
| 135 | 134 |
try{
|
| 136 | 135 |
for(Iterator<String> i = params.keySet().iterator(); i.hasNext();){
|
| 137 | 136 |
String key = i.next(); |
| 138 |
- //전달값이 없는 경우 오류 |
|
| 137 |
+ //ì ë¬ê°ì´ ìë ê²½ì° ì¤ë¥ |
|
| 139 | 138 |
try{
|
| 140 | 139 |
builder.addTextBody(key, params.get(key) |
| 141 | 140 |
, ContentType.create("Multipart/related", encodingType));
|
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?