테스트 페이지 완료

This commit is contained in:
hehihoho3@gmail.com 2025-09-29 18:31:08 +09:00
parent b3eb056fa8
commit 3867cc7590
14 changed files with 422 additions and 385 deletions

View File

@ -135,18 +135,18 @@
</div> </div>
<div class="mem_cont_in"> <div class="mem_cont_in">
<div class="input_list"> <div class="input_list">
<!--
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*mberId <div class="input_left">*mberId
<input type="text" class="list_inputType1" id="mberId" maxlength="100" value="goodgkdus" size="100"/> <input type="text" class="list_inputType1" id="mberId" maxlength="100" value="dudgusw" size="100"/>
</div> </div>
</div> </div>
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*api key <div class="input_left">*api key
<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/> <input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="3429312e6a2c732188d4cc7d15d8a1baa01d8d91" size="100"/>
</div> </div>
</div> </div>
-->
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*메시지ID <div class="input_left">*메시지ID

View File

@ -149,18 +149,18 @@
</div> </div>
<div class="mem_cont_in"> <div class="mem_cont_in">
<div class="input_list"> <div class="input_list">
<!--
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*mberId <div class="input_left">*mberId
<input type="text" class="list_inputType1" id="mberId" maxlength="100" value="goodgkdus" size="100"/> <input type="text" class="list_inputType1" id="mberId" maxlength="100" value="dudgusw" size="100"/>
</div> </div>
</div> </div>
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*api key <div class="input_left">*api key
<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="12e749877379aa7426275414050694b953" size="100"/> <input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="3429312e6a2c732188d4cc7d15d8a1baa01d8d91" size="100"/>
</div> </div>
</div> </div>
-->
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">페이지번호 <div class="input_left">페이지번호
@ -174,7 +174,7 @@
</div> </div>
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">조회시작일자 <div class="input_left">조회시작일자
<input type="text" class="list_inputType1" id="startDate" maxlength="100" value="" size="100"/>(기본값 오늘)ex)20230601 <input type="text" class="list_inputType1" id="startDate" maxlength="100" value="" size="100"/>(기본값 전체)ex)20230601
</div> </div>
</div> </div>
<div class="input_list_item"> <div class="input_list_item">

View File

@ -24,12 +24,6 @@
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요 //회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
//실제서비스용 //실제서비스용
final String mberId = "dudgusw"; //문자온 로그인 아이디
final String apiKey = "3429312e6a2c732188d4cc7d15d8a1baa01d8d91"; //발급받은 api key
//테스트용
//String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
//String apiKey = request.getParameter("p_apiKey"); //발급받은 api key
/******************** 전송요청 URL ********************/ /******************** 전송요청 URL ********************/
@ -42,8 +36,8 @@
Map<String, String> params = new HashMap<String, String>(); Map<String, String> params = new HashMap<String, String>();
/******************** 인증정보 ********************/ /******************** 인증정보 ********************/
params.put("mberId", mberId); //문자온 로그인 아이디 String p_mberId = request.getParameter("p_mberId"); //발신자 번호
params.put("accessKey", apiKey); //APIKEY String p_apiKey = request.getParameter("p_apiKey"); //수신자 번호
/******************** 전송정보 ********************/ /******************** 전송정보 ********************/
//(선택) //(선택)
@ -54,6 +48,8 @@
String p_testYn = request.getParameter("p_testYn"); //테스트데이터여부 '', 'YF', 'YS' String p_testYn = request.getParameter("p_testYn"); //테스트데이터여부 '', 'YF', 'YS'
//추가 전송 데이터 //추가 전송 데이터
params.put("mberId", p_mberId); //회원 아이디
params.put("accessKey", p_apiKey); //인증키
params.put("page" , p_page); //페이지번호 params.put("page" , p_page); //페이지번호
params.put("pageSize" , p_pageSize); //페이지당 출력갯수 params.put("pageSize" , p_pageSize); //페이지당 출력갯수
params.put("startDate" , p_startDate); //시작일자 params.put("startDate" , p_startDate); //시작일자

View File

@ -95,18 +95,19 @@
</div> </div>
<div class="mem_cont_in"> <div class="mem_cont_in">
<div class="input_list"> <div class="input_list">
<!--
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*mberId <div class="input_left">*mberId
<input type="text" class="list_inputType1" id="mberId" maxlength="100" value="goodgkdus" size="100"/> <input type="text" class="list_inputType1" id="mberId" maxlength="100" value="dudgusw" size="100"/>
</div> </div>
</div> </div>
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*api key <div class="input_left">*api key
<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/> <input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="3429312e6a2c732188d4cc7d15d8a1baa01d8d91" size="100"/>
</div> </div>
</div> </div>
-->
<!-- 채널ID 조회 설명 및 입력 영역 끝 --> <!-- 채널ID 조회 설명 및 입력 영역 끝 -->
<div class="mem_btnWrap2"> <div class="mem_btnWrap2">

View File

@ -20,10 +20,6 @@
final String encodingType = "UTF-8"; final String encodingType = "UTF-8";
final String boundary = "____boundary____"; final String boundary = "____boundary____";
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용
//실제서비스용
final String mberId = "dudgusw"; //문자온 로그인 아이디
final String apiKey = "3429312e6a2c732188d4cc7d15d8a1baa01d8d91"; //발급받은 api key
//테스트용 //테스트용
//String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디 //String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
@ -32,11 +28,16 @@
/******************** 전송 요청 URL ********************/ /******************** 전송 요청 URL ********************/
final String apiUrl = "http://119.193.215.98:8087/api/kakao/inqry/chnlId"; //채널ID 조회 API URL final String apiUrl = "http://119.193.215.98:8087/api/kakao/inqry/chnlId"; //채널ID 조회 API URL
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용
String p_mberId = request.getParameter("p_mberId"); //발신자 번호
String p_apiKey = request.getParameter("p_apiKey"); //수신자 번호
Map<String, String> params = new HashMap<String, String>(); Map<String, String> params = new HashMap<String, String>();
//기본 전송 데이터 //기본 전송 데이터
params.put("mberId", mberId); //회원 아이디 params.put("mberId", p_mberId); //회원 아이디
params.put("accessKey", apiKey); //인증키 params.put("accessKey", p_apiKey); //인증키
//REST API 전송 //REST API 전송
String result = ""; String result = "";

View File

@ -83,18 +83,18 @@
</div> </div>
<div class="mem_cont_in"> <div class="mem_cont_in">
<div class="input_list"> <div class="input_list">
<!--
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*mberId <div class="input_left">*mberId
<input type="text" class="list_inputType1" id="mberId" maxlength="100" value="goodgkdus" size="100"/> <input type="text" class="list_inputType1" id="mberId" maxlength="100" value="dudgusw" size="100"/>
</div> </div>
</div> </div>
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*api key <div class="input_left">*api key
<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/> <input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="3429312e6a2c732188d4cc7d15d8a1baa01d8d91" size="100"/>
</div> </div>
</div> </div>
-->
<div class="mem_btnWrap2"> <div class="mem_btnWrap2">
&nbsp;<button type="button" class="mem_btn3" style="width: 100%;" id="ajax_select_price" onclick="return false;">발송가능건수 요청</button> &nbsp;<button type="button" class="mem_btn3" style="width: 100%;" id="ajax_select_price" onclick="return false;">발송가능건수 요청</button>

View File

@ -24,8 +24,6 @@
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요 //회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
//실제서비스용 //실제서비스용
final String mberId = "dudgusw"; //문자온 로그인 아이디
final String apiKey = "3429312e6a2c732188d4cc7d15d8a1baa01d8d91"; //발급받은 api ke
//테스트용 //테스트용
@ -43,9 +41,14 @@
Map<String, String> params = new HashMap<String, String>(); Map<String, String> params = new HashMap<String, String>();
String p_mberId = request.getParameter("p_mberId"); //발신자 번호
String p_apiKey = request.getParameter("p_apiKey"); //수신자 번호
/******************** 인증정보 ********************/ /******************** 인증정보 ********************/
params.put("mberId", mberId); //문자온 로그인 아이디 params.put("mberId", p_mberId); //문자온 로그인 아이디
params.put("accessKey", apiKey); //APIKEY params.put("accessKey", p_apiKey); //APIKEY
/******************** 전송정보 ********************/ /******************** 전송정보 ********************/
String result = ""; String result = "";

View File

@ -176,27 +176,27 @@ $(function(){
<table border="1" cellspacing="0" cellpadding="6" style="width:100%;"> <table border="1" cellspacing="0" cellpadding="6" style="width:100%;">
<colgroup><col style="width:260px"><col></colgroup> <colgroup><col style="width:260px"><col></colgroup>
<tbody> <tbody>
<!-- 필요 시 주석 해제해서 사용 필요 시 주석 해제해서 사용
<tr> <tr>
<th align="left">*mberId</th> <th align="left">*mberId</th>
<td><input type="text" class="list_inputType1" id="mberId" size="40" value="your_biz_id" /></td> <td><input type="text" class="list_inputType1" id="mberId" size="40" value="dudgusw" /></td>
</tr> </tr>
<tr> <tr>
<th align="left">*api key</th> <th align="left">*api key</th>
<td><input type="text" class="list_inputType1" id="apiKey" size="60" value="your_api_key" /></td> <td><input type="text" class="list_inputType1" id="apiKey" size="60" value="3429312e6a2c732188d4cc7d15d8a1baa01d8d91" /></td>
</tr> </tr>
-->
<tr> <tr>
<th align="left">*senderKey (카카오 알림톡 채널ID)</th> <th align="left">*senderKey (카카오 알림톡 채널ID)</th>
<td><input type="text" class="list_inputType1" id="senderKey" size="60" value="your_sender_key" /></td> <td><input type="text" class="list_inputType1" id="senderKey" size="60" value="669143473b1af459628b8bdf2f48da090c8895de" /></td>
</tr> </tr>
<tr> <tr>
<th align="left">*templateCode (카카오 알림톡 템플릿 코드)</th> <th align="left">*templateCode (카카오 알림톡 템플릿 코드)</th>
<td><input type="text" class="list_inputType1" id="templateCode" size="60" value="your_template_code" /></td> <td><input type="text" class="list_inputType1" id="templateCode" size="60" value="bizp_2025031410525347794704159" /></td>
</tr> </tr>
<tr> <tr>
<th align="left">callFrom (발신번호)</th> <th align="left">callFrom (발신번호)</th>
<td><input type="text" class="list_inputType1" id="callFrom" size="30" value="01093414986" /></td> <td><input type="text" class="list_inputType1" id="callFrom" size="30" value="010-9341-4986" /></td>
</tr> </tr>
<tr> <tr>
<th align="left">subMsgSendYn (대체문자 전송 여부)</th> <th align="left">subMsgSendYn (대체문자 전송 여부)</th>
@ -237,15 +237,15 @@ $(function(){
</tr> </tr>
<tr> <tr>
<th align="left">알림톡 내용</th> <th align="left">알림톡 내용</th>
<td><textarea class="list_inputType1 msgTxt" rows="3" cols="80">안녕하세요. 알림톡 테스트입니다.</textarea></td> <td><textarea class="list_inputType1 msgTxt" rows="3" cols="80">테스트 홍길동\n타이틀 버튼 치환 테스트입니다.</textarea></td>
</tr> </tr>
<tr> <tr>
<th align="left">알림톡 제목 (선택)</th> <th align="left">알림톡 제목 (선택)</th>
<td><input type="text" class="list_inputType1 title" size="60" value="테스트 제목" /></td> <td><input type="text" class="list_inputType1 title" size="60" value="테스트 홍길동111" /></td>
</tr> </tr>
<tr> <tr>
<th align="left">대체문자 본문 (선택)</th> <th align="left">대체문자 본문 (선택)</th>
<td><input type="text" class="list_inputType1 altSms" size="80" value=""></td> <td><input type="text" class="list_inputType1 altSms" size="80" value="대체문자 발송"></td>
</tr> </tr>
</tbody> </tbody>

View File

@ -15,12 +15,17 @@ response.setCharacterEncoding("UTF-8");
try { try {
// ===== 고정값(실서비스는 서버 보관) ===== // ===== 고정값(실서비스는 서버 보관) =====
final String MBER_ID = "dudgusw";
final String API_KEY = "3429312e6a2c732188d4cc7d15d8a1baa01d8d91";
// ===== 전송 URL ===== // ===== 전송 URL =====
// final String apiUrl = "http://119.193.215.98:8087/api/kakao/at/sendMsg"; // final String apiUrl = "http://119.193.215.98:8087/api/kakao/at/sendMsg";
final String apiUrl = "http://localhost:8088/api/kakao/at/sendMsg"; final String apiUrl = "http://119.193.215.98:8087/api/kakao/at/sendMsg";
String p_mberId = request.getParameter("mberId"); //사용자 ID
String p_apiKey = request.getParameter("accessKey"); //API KEY
System.out.println("p_mberId : "+ p_mberId);
System.out.println("p_apiKey : "+ p_apiKey);
// ===== 공통 파라미터 수신 (p_* / 비접두어 둘 다 허용) ===== // ===== 공통 파라미터 수신 (p_* / 비접두어 둘 다 허용) =====
String senderKey = request.getParameter("p_senderKey"); if (senderKey == null) senderKey = request.getParameter("senderKey"); String senderKey = request.getParameter("p_senderKey"); if (senderKey == null) senderKey = request.getParameter("senderKey");
@ -29,12 +34,14 @@ try {
String subMsgSendYn = request.getParameter("p_subMsgSendYn"); if (subMsgSendYn == null) subMsgSendYn = request.getParameter("subMsgSendYn"); String subMsgSendYn = request.getParameter("p_subMsgSendYn"); if (subMsgSendYn == null) subMsgSendYn = request.getParameter("subMsgSendYn");
String testYn = request.getParameter("p_testYn"); if (testYn == null) testYn = request.getParameter("testYn"); String testYn = request.getParameter("p_testYn"); if (testYn == null) testYn = request.getParameter("testYn");
System.out.println("senderKey : "+ senderKey);
if (callFrom != null) callFrom = callFrom.replaceAll("\\D", ""); // 숫자만 if (callFrom != null) callFrom = callFrom.replaceAll("\\D", ""); // 숫자만
// ===== form 구성 (x-www-form-urlencoded) ===== // ===== form 구성 (x-www-form-urlencoded) =====
List<NameValuePair> form = new ArrayList<>(); List<NameValuePair> form = new ArrayList<>();
form.add(new BasicNameValuePair("mberId", MBER_ID)); form.add(new BasicNameValuePair("mberId", p_mberId));
form.add(new BasicNameValuePair("accessKey", API_KEY)); form.add(new BasicNameValuePair("accessKey", p_apiKey));
form.add(new BasicNameValuePair("senderKey", senderKey != null ? senderKey : "")); form.add(new BasicNameValuePair("senderKey", senderKey != null ? senderKey : ""));
form.add(new BasicNameValuePair("templateCode", templateCode != null ? templateCode : "")); form.add(new BasicNameValuePair("templateCode", templateCode != null ? templateCode : ""));
form.add(new BasicNameValuePair("callFrom", callFrom != null ? callFrom : "")); form.add(new BasicNameValuePair("callFrom", callFrom != null ? callFrom : ""));

View File

@ -6,7 +6,20 @@
<title>친구톡(FT) 발송 샘플</title> <title>친구톡(FT) 발송 샘플</title>
<script src="./jquery-3.5.0.js"></script> <script src="./jquery-3.5.0.js"></script>
</head> </head>
<body> <body>
<div class="inner">
<div class="send_top">
<div class="mypage_content current" id="tab5_3">
<div class="heading">
<h2><a href="./jsp_example_start_form_r1.jsp">돌아가기</a></h2>
<h2>친구톡 발송(샘플-문자온)</h2>
*mberId와 accessKey값은 실제 서비스시에는 <b>jsp_example_send_ft_r1.jsp</b> 파일에 작성하여 사용하세요.<br/>
(샘플 페이지에서는 원활한 테스트를 위해 파라미터 형식으로 제공합니다.)
<br/><br/>
</div>
<h2>친구톡(FT) 발송(샘플)</h2> <h2>친구톡(FT) 발송(샘플)</h2>
<form id="ftForm" method="post" action="./jsp_example_send_ft_r1.jsp" enctype="multipart/form-data"> <form id="ftForm" method="post" action="./jsp_example_send_ft_r1.jsp" enctype="multipart/form-data">
@ -14,7 +27,15 @@
<legend>공통</legend> <legend>공통</legend>
<table border="1" cellspacing="0" cellpadding="6" style="width:100%;"> <table border="1" cellspacing="0" cellpadding="6" style="width:100%;">
<colgroup><col style="width:220px"><col></colgroup> <colgroup><col style="width:220px"><col></colgroup>
<tr><th align="left">*senderKey</th><td><input type="text" name="senderKey" size="60" value=""/></td></tr>
<tr><th align="left">*mberId</th><td><input type="text" name="mberId" size="60" value="dudgusw"/></td></tr>
<tr><th align="left">*API_KEY</th><td><input type="text" name="API_KEY" size="60" value="3429312e6a2c732188d4cc7d15d8a1baa01d8d91"/></td></tr>
<tr><th align="left">*senderKey</th><td><input type="text" name="senderKey" size="60" value="669143473b1af459628b8bdf2f48da090c8895de"/></td></tr>
<tr><th align="left">adFlag</th><td><input type="text" name="adFlag" size="4" value="N"/> (Y/N)</td></tr> <tr><th align="left">adFlag</th><td><input type="text" name="adFlag" size="4" value="N"/> (Y/N)</td></tr>
<tr><th align="left">subMsgSendYn</th><td><input type="text" name="subMsgSendYn" size="4" value="Y"/> (Y/N)</td></tr> <tr><th align="left">subMsgSendYn</th><td><input type="text" name="subMsgSendYn" size="4" value="Y"/> (Y/N)</td></tr>
<tr><th align="left">callFrom</th><td><input type="text" name="callFrom" size="20" value="010-9341-4986"/></td></tr> <tr><th align="left">callFrom</th><td><input type="text" name="callFrom" size="20" value="010-9341-4986"/></td></tr>
@ -103,5 +124,8 @@ $(function(){
}); });
}); });
</script> </script>
</div>
</div>
</div>
</body> </body>
</html> </html>

View File

@ -79,18 +79,18 @@
</div> </div>
<div class="mem_cont_in"> <div class="mem_cont_in">
<div class="input_list"> <div class="input_list">
<!--
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*mberId <div class="input_left">*mberId
<input type="text" class="list_inputType1" id="mberId" maxlength="100" value="goodgkdus" size="100"/> <input type="text" class="list_inputType1" id="mberId" maxlength="100" value="dudgusw" size="100"/>
</div> </div>
</div> </div>
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*api key <div class="input_left">*api key
<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/> <input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="3429312e6a2c732188d4cc7d15d8a1baa01d8d91" size="100"/>
</div> </div>
</div> </div>
-->
<!-- 발신자 번호 --> <!-- 발신자 번호 -->
<div class="input_list_item"> <div class="input_list_item">

View File

@ -24,8 +24,8 @@
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용 //회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용
//실제서비스용 //실제서비스용
final String mberId = "dudgusw"; //문자온 로그인 아이디 // final String mberId = "dudgusw"; //문자온 로그인 아이디
final String apiKey = "3429312e6a2c732188d4cc7d15d8a1baa01d8d91"; //발급받은 api ke // final String apiKey = "3429312e6a2c732188d4cc7d15d8a1baa01d8d91"; //발급받은 api ke
//테스트용 //테스트용
@ -34,11 +34,14 @@
/******************** 전송 요청 URL ********************/ /******************** 전송 요청 URL ********************/
// final String apiUrl = "https://api.munjaon.co.kr/api/send/sendMsg"; //개발테스트용 URL // final String apiUrl = "https://api.munjaon.co.kr/api/send/sendMsg"; //개발테스트용 URL
String apiUrl = "/api/send/sendMsg"; //개발테스트용 URL URL // String apiUrl = "/api/send/sendMsg"; //개발테스트용 URL URL
// final String apiUrl = "http://119.193.215.98:8087/api/send/sendMsg"; //개발테스트용 URL final String apiUrl = "http://119.193.215.98:8087/api/send/sendMsg"; //개발테스트용 URL
// final String apiUrl = "http://192.168.0.96:8088/api/send/sendMsg"; //개발테스트용 URL
/******************** 전송 정보 ********************/ /******************** 전송 정보 ********************/
//필수 값 //필수 값
String p_mberId = request.getParameter("p_mberId"); //발신자 번호
String p_apiKey = request.getParameter("p_apiKey"); //수신자 번호
String p_callFrom = request.getParameter("p_callFrom"); //발신자 번호 String p_callFrom = request.getParameter("p_callFrom"); //발신자 번호
String p_callToList = request.getParameter("p_callToList"); //수신자 번호 String p_callToList = request.getParameter("p_callToList"); //수신자 번호
String p_smsTxt = request.getParameter("p_smsTxt"); //문자 내용 String p_smsTxt = request.getParameter("p_smsTxt"); //문자 내용
@ -47,7 +50,7 @@
String p_nameStr = request.getParameter("p_nameStr"); //치환용 이름 String p_nameStr = request.getParameter("p_nameStr"); //치환용 이름
String p_testYn = request.getParameter("p_testYn"); //테스트 데이터 여부 '', 'YF', 'YS' String p_testYn = request.getParameter("p_testYn"); //테스트 데이터 여부 '', 'YF', 'YS'
String p_api_ip = request.getParameter("p_api_ip"); //테스트 데이터 여부 '', 'YF', 'YS' String p_api_ip = request.getParameter("p_api_ip"); //테스트 데이터 여부 '', 'YF', 'YS'
apiUrl += p_api_ip; // apiUrl += p_api_ip;
/* 추후 사용을 위하여 주석 상태로 보존 - 사용자 샘플 JSP에는 해당 내용 삭제 */ /* 추후 사용을 위하여 주석 상태로 보존 - 사용자 샘플 JSP에는 해당 내용 삭제 */
@ -75,8 +78,8 @@
Map<String, String> params = new HashMap<String, String>(); Map<String, String> params = new HashMap<String, String>();
//필수 전송 데이터 //필수 전송 데이터
params.put("mberId", mberId); //회원 아이디 params.put("mberId", p_mberId); //회원 아이디
params.put("accessKey", apiKey); //인증키 params.put("accessKey", p_apiKey); //인증키
params.put("callFrom" , p_callFrom); //발신자 번호 params.put("callFrom" , p_callFrom); //발신자 번호
params.put("callToList" , p_callToList); //수신자 번호 params.put("callToList" , p_callToList); //수신자 번호
params.put("smsTxt" , p_smsTxt); //문자 내용 params.put("smsTxt" , p_smsTxt); //문자 내용

View File

@ -97,7 +97,7 @@
<br/> <br/>
<!-- 문자발송 설명 및 입력 영역 시작 --> <!-- 문자발송 설명 및 입력 영역 시작 -->
<h2>대량문자발송(샘플-문자온)</h2> <h2>대량문자발송(샘플-문자온)</h2>
*mberId와 accessKey값은 실제 서비스시에는 jsp_example_send_msg_r1.jsp 파일에 작성하여 사용하세요 *mberId와 accessKey값은 실제 서비스시에는 jsp_example_send_msgs_r1.jsp 파일에 작성하여 사용하세요
<br/>(샘플 페이지에서는 월활한 테스트를 위해 파라미터 형식으로 제공합니다.) <br/>(샘플 페이지에서는 월활한 테스트를 위해 파라미터 형식으로 제공합니다.)
<br/><br/><br/> <br/><br/><br/>
@ -114,18 +114,18 @@
</div> </div>
<div class="input_list"> <div class="input_list">
<!--
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*mberId <div class="input_left">*mberId
<input type="text" class="list_inputType1" id="mberId" maxlength="100" value="goodgkdus" size="100"/> <input type="text" class="list_inputType1" id="mberId" maxlength="100" value="dudgusw" size="100"/>
</div> </div>
</div> </div>
<div class="input_list_item"> <div class="input_list_item">
<div class="input_left">*api key <div class="input_left">*api key
<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/> <input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="3429312e6a2c732188d4cc7d15d8a1baa01d8d91" size="100"/>
</div> </div>
</div> </div>
-->
<!-- 발신자 번호 --> <!-- 발신자 번호 -->
<div class="input_list_item"> <div class="input_list_item">

View File

@ -24,8 +24,8 @@
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용 //회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용
//실제서비스용 //실제서비스용
final String mberId = "dudgusw"; //문자온 로그인 아이디 // final String mberId = "dudgusw"; //문자온 로그인 아이디
final String apiKey = "3429312e6a2c732188d4cc7d15d8a1baa01d8d91"; //발급받은 api ke // final String apiKey = "3429312e6a2c732188d4cc7d15d8a1baa01d8d91"; //발급받은 api ke
//테스트용 //테스트용
@ -39,7 +39,9 @@
// final String apiUrl = "http://localhost:8088/api/send/sendMsgs"; //개발테스트용 URL // final String apiUrl = "http://localhost:8088/api/send/sendMsgs"; //개발테스트용 URL
/******************** 전송 정보 ********************/ /******************** 전송 정보 ********************/
//필수 값’ //필수 값
String p_mberId = request.getParameter("p_mberId"); //발신자 번호
String p_apiKey = request.getParameter("p_apiKey"); //수신자 번호’
String p_callFrom = request.getParameter("p_callFrom"); //발신자 번호 String p_callFrom = request.getParameter("p_callFrom"); //발신자 번호
String p_callTo_1 = request.getParameter("p_callTo_1"); //수신자 번호 1 String p_callTo_1 = request.getParameter("p_callTo_1"); //수신자 번호 1
String p_smsTxt_1 = request.getParameter("p_smsTxt_1"); //문자 내용 1 String p_smsTxt_1 = request.getParameter("p_smsTxt_1"); //문자 내용 1
@ -73,8 +75,8 @@
Map<String, String> params = new HashMap<String, String>(); Map<String, String> params = new HashMap<String, String>();
//필수 전송 데이터 //필수 전송 데이터
params.put("mberId", mberId); //회원 아이디 params.put("mberId", p_mberId); //회원 아이디
params.put("accessKey", apiKey); //인증키 params.put("accessKey", p_apiKey); //인증키
params.put("callFrom" , p_callFrom); //발신번호 params.put("callFrom" , p_callFrom); //발신번호
//선택 전송 데이터 //선택 전송 데이터