api 문자 발송 테스트 추가

This commit is contained in:
hehihoho3@gmail.com 2025-04-29 18:27:08 +09:00
parent b35ceb5cfd
commit bff11e5087
13 changed files with 12505 additions and 4 deletions

View File

@ -0,0 +1,87 @@
package itn.let.mjo.api.sms.web;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.HandlerMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import itn.com.cmm.EgovMessageSource;
import itn.com.cmm.LoginVO;
import itn.com.cmm.util.RedirectUrlMaker;
import itn.com.utl.fcc.service.EgovStringUtil;
import itn.let.mjo.apikey.service.ApiCallInfoMngService;
import itn.let.mjo.apikey.service.ApiKeyMngService;
import itn.let.mjo.apikey.service.ApiKeyVO;
import itn.let.mjo.mjocommon.MjonCommon;
import itn.let.mjo.msg.service.MjonMsgService;
import itn.let.sym.site.service.EgovSiteManagerService;
import itn.let.sym.site.service.JoinSettingVO;
import itn.let.uss.umt.service.EgovUserManageService;
import itn.let.utl.user.service.MjonNoticeSendUtil;
import itn.let.utl.user.service.SecuKeyUtil;
/**
*
* @author api key manager
* @since 2021.03.20
* @version 1.0
* @see
*
*
* 수정일 수정자 수정내용
* ------- -------- ---------------------------
* 2021.03.20 신명섭 최초 생성
* </pre>
*/
@Controller
public class ApiSmsTestMsgController {
/**
* @methodName : ussIonApikeyUserAPIKEYList
* @author : 이호영
* @date : 2025. 4. 29.
* @description : api 문자 발송 테스트
* @return : String
* @param searchVO
* @param request
* @param model
* @return
* @throws Exception
*
*/
@RequestMapping(value= {"/uss/ion/api/test/sms/sendMsgForm.do"})
public String sendMsgForm(@ModelAttribute("searchVO") ApiKeyVO searchVO,
HttpServletRequest request ,
ModelMap model) throws Exception{
//value 가져오기
return "/uss/ion/api/test/sms/sendMsgForm";
}
@RequestMapping(value= {"/uss/ion/api/test/sms/sendMsgsForm.do"})
public String sendMsgsForm(@ModelAttribute("searchVO") ApiKeyVO searchVO,
HttpServletRequest request ,
ModelMap model) throws Exception{
//value 가져오기
return "/uss/ion/api/test/sms/sendMsgsForm";
}
}

View File

@ -0,0 +1,40 @@
<%@ 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" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<script type="text/javascript">
$(document).ready(function() {
// 기존 코드 유지하면서, 이거 추가
var currentPath = window.location.pathname;
$('.tabList li a').each(function() {
var linkPath = $(this).attr('href');
if (currentPath === linkPath) {
$(this).parent().addClass('active');
}
});
});
</script>
<div class="tabWrap">
<ul class="tabList">
<li><a href="/uss/ion/api/test/sms/sendMsgForm.do">문자발송</a></li>
<li><a href="/uss/ion/api/test/sms/sendMsgsForm.do">대량문자발송</a></li>
<li><a href="/uss/ion/api/test/sms/sendHstryFrom.do">전체발송내역</a></li>
<li><a href="/uss/ion/api/test/sms/sendHstryDetailFrom.do">상세발송내역</a></li>
<li><a href="/uss/ion/api/test/sms/sendSelectPriceFrom.do">발송가능건수</a></li>
</ul>
</div>
<div class="subte">
<p>- </p>
<p>- 전송내역dd에 다운로드하여 주시기 바랍니다.</p>
<p>- 전송내역이 필요한 경우 기간 내에 다운로드하여 주시기 바랍니다.</p>
<p>- 전송내역이 필요한 경우 기간 내에 다운로드하여 주시기 바랍니다.</p>
<p>- 전송내역이 필요한 경우 기간 내에 다운로드하여 주시기 바랍니다.</p>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,225 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript" src="./jquery-3.5.0.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//발송가능건수
$("#ajax_select_price").click(function(){
$('#dynamicTbody').append("");
//document.updatePasswordForm.action = '/web/user/sendRESTAPI_test_r1_send.do';
//document.updatePasswordForm.submit();
var searchWebParam = {
'p_mberId' : $('#mberId').val()
, 'p_apiKey' : $('#apiKey').val()
, 'p_msgGroupId' : $('#msgGroupId').val()
, 'p_page' : $('#page').val()
, 'p_pageSize' : $('#pageSize').val()
, 'p_testYn' : $('#testYn').val()
};
//검색 API를 Ajax로 이용 하기 위한 호출
$.ajax({
url : "./jsp_example_hstry_detail_r1.jsp",
//형식을 json으로 받을 것이기 때문에 지정하여 주었습니다.
dataType : "json",
async : false,
type : "POST",
data : searchWebParam,
success: function (returnData, status) {
console.log('returnData : ', returnData);
if (returnData.data.resultCode=="0"){
//makeResult(returnData);
if(returnData.data.objectList.length == 0){
alert('조회 결과가 없습니다.')
}else{
makeResult(returnData);
}
/*
$("span#sp").text(returnData.shortPrice);
$("span#lp").text(returnData.longPrice);
$("span#pp").text(returnData.picturePrice);
$("span#um").text(returnData.userMoney);
$("span#sspe").text(returnData.shortSendPsbltEa);
$("span#lspe").text(returnData.longSendPsbltEa);
$("span#pspe").text(returnData.pictureSendPsbltEa);
*/
} else{
alert(returnData.data.resultCode+" : "+returnData.data.msg);
}
},
error : function(request, status, error){
alert(request+"///"+error+"///"+status+"///"+"AJAX_ERROR");
console.log("AJAX_ERROR");
}
});
});
});
function makeResult(p_returnData){
var v_html = "";
try {
for (var i=0;i<p_returnData.data.objectList.length;i++){
v_html += "<tr>";
v_html += "<td>";
v_html += p_returnData.data.objectList[i].msgId;
v_html += "</td>";
v_html += "<td>";
v_html += p_returnData.data.objectList[i].msgTypeName;
v_html += "</td>";
v_html += "<td>";
v_html += p_returnData.data.objectList[i].callFrom;
v_html += "</td>";
v_html += "<td>";
v_html += p_returnData.data.objectList[i].callTo;
v_html += "</td>";
v_html += "<td>";
v_html += p_returnData.data.objectList[i].msgResult;
v_html += "</td>";
v_html += "<td>";
v_html += p_returnData.data.objectList[i].regdate;
v_html += "</td>";
v_html += "<td>";
v_html += p_returnData.data.objectList[i].reqdate;
v_html += "</td>";
v_html += "<td>";
v_html += p_returnData.data.objectList[i].remainMsgCnt;
v_html += "</td>";
v_html += "</tr>";
}
} catch (error) {
console.error(error);
// Expected output: ReferenceError: nonExistentFunction is not defined
// (Note: the exact output may be browser-dependent)
}
v_html += "";
//$('#divResult').append("aaaaaa");
$('#dynamicTbody').html(v_html);
}
</script>
<div class="inner">
<!-- send top -->
<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>
<br/>
<h2>상세발송정보(샘플-문자온)</h2>
*mberId와 accessKey값은 실제 서비스시에는 jsp_example_hstry_r1.jsp 파일에 작성하여 사용하세요
<br/>(샘플 페이지에서는 월활한 테스트를 위해 파라미터 형식으로 제공합니다.)
<br/><br/><br/>
</div>
<div class="mem_cont_in">
<div class="input_list">
<!--
<div class="input_list_item">
<div class="input_left">*mberId
<input type="text" class="list_inputType1" id="mberId" maxlength="100" value="goodgkdus" size="100"/>
</div>
</div>
<div class="input_list_item">
<div class="input_left">*api key
<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/>
</div>
</div>
-->
<div class="input_list_item">
<div class="input_left">*메시지ID
<input type="text" class="list_inputType1" id="msgGroupId" maxlength="100" value="MSGGID_0000000011452" size="100"/>
</div>
</div>
<div class="input_list_item">
<div class="input_left">페이지번호
<input type="text" class="list_inputType1" id="page" maxlength="100" value="" size="100"/>(기본값-1)
</div>
</div>
<div class="input_list_item">
<div class="input_left">페이지당 출력갯수
<input type="text" class="list_inputType1" id="pageSize" maxlength="100" value="" size="100"/>(기본값-30(30~500))
</div>
</div>
<div class="input_list_item">
<div class="input_left">테스트여부
<input type="text" class="list_inputType1" id="testYn" maxlength="100" value="" size="100"/>(기본값 없음, YF-테스트(실패), YS-테스트(성공)
</div>
</div>
<div class="mem_btnWrap2">
&nbsp;<button type="button" class="mem_btn3" style="width: 100%;" id="ajax_select_price" onclick="return false;">상세발송정보 요청</button>
</div>
</div>
</div>
<div class="list_cont" id="listTab_1">
<table class="board_list">
<colgroup>
<col style="width: 200px;">
<col style="width: 220px;">
<col style="width: 200px;">
<col style="width: 200px;">
<col style="width: 200px;">
<col style="width: 200px;">
<col style="width: 200px;">
<col style="width: 200px;">
</colgroup>
<thead>
<tr>
<th scope="row">메시지상세ID
</th>
<th scope="row">문자구분(유형)
</th>
<th scope="row">발신번호
</th>
<th scope="row">수신번호
</th>
<th scope="row">처리상태
</th>
<th scope="row">등록일시
</th>
<th scope="row">발송일시
</th>
<th scope="row">남겨진리스트수량(다음페이지여부)
</th>
</tr>
</thead>
<tbody id="dynamicTbody">
</tbody>
</table>
</div>
</div>
<!--// 마이페이지 - 비밀번호 변경 -->
</div>
<!--// send top -->
</div>
<!--// content 영역 -->

View File

@ -0,0 +1,110 @@
<%@page import="java.io.InputStreamReader"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="org.apache.http.HttpResponse"%>
<%@page import="org.apache.http.client.methods.HttpPost"%>
<%@page import="org.apache.http.impl.client.HttpClients"%>
<%@page import="org.apache.http.client.HttpClient"%>
<%@page import="org.apache.http.HttpEntity"%>
<%@page import="java.net.URLEncoder"%>
<%@page import="org.apache.http.entity.ContentType"%>
<%@page import="org.apache.http.entity.mime.content.FileBody"%>
<%@page import="java.io.File"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.nio.charset.Charset"%>
<%@page import="org.apache.http.entity.mime.HttpMultipartMode"%>
<%@page import="org.apache.http.entity.mime.MultipartEntityBuilder"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=utf-8 " pageEncoding="utf-8"%>
<%
try{
//기본 설정값
final String encodingType = "UTF-8";
final String boundary = "__BDR__";
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
//실제서비스용
final String mberId = "dudgusw"; //문자온 로그인 아이디
final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api ke
//테스트용
//String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
//String apiKey = request.getParameter("p_apiKey"); //발급받은 api key
/******************** 전송요청 URL ********************/
final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; // 전송요청 URL
// String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail";
/**************** 발송가능건수 예제 ******************/
System.out.println("상세발송이력");
Map<String, String> params = new HashMap<String, String>();
/******************** 인증정보 ********************/
params.put("mberId", mberId); //문자온 로그인 아이디
params.put("accessKey", apiKey); //APIKEY
/******************** 전송정보 ********************/
//(필수)
String p_msgGroupId = request.getParameter("p_msgGroupId"); //메시지 group id
//(선택)
String p_page = request.getParameter("p_page"); //페이지번호 기본-1
String p_pageSize = request.getParameter("p_pageSize"); //페이지당 출력갯수-30(30~500)
String p_testYn = request.getParameter("p_testYn"); //테스트데이터여부 '', 'YF', 'YS'
//추가 전송 데이터
params.put("msgGroupId" , p_msgGroupId); //문자 전송 정보
params.put("page" , p_page); //페이지번호
params.put("pageSize" , p_pageSize); //페이지당 출력갯수
params.put("test_yn" , p_testYn); //테스트 여부
String result = "";
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
builder.setBoundary(boundary);
builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE);
builder.setCharset(Charset.forName(encodingType));
for(Iterator<String> i = params.keySet().iterator(); i.hasNext();){
String key = i.next();
//전달값이 없는 경우 오류
try{
builder.addTextBody(key, params.get(key)
, ContentType.create("Multipart/related", encodingType));
}catch(Exception ex){
//ex.printStackTrace()
}
}
HttpEntity entity = builder.build();
HttpClient client = HttpClients.createDefault();
HttpPost post = new HttpPost(apiUrl);
post.setEntity(entity);
HttpResponse res = client.execute(post);
if(res != null){
BufferedReader in = new BufferedReader(new InputStreamReader(res.getEntity().getContent(), encodingType));
String buffer = null;
while((buffer = in.readLine())!=null){
result += buffer;
}
in.close();
}
out.print(result);
}catch(Exception e){
out.print("{\"resultCode\":99,\"message\":\"WRONG API METHOD\"}");
}
%>

View File

@ -0,0 +1,258 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript" src="./jquery-3.5.0.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//발송가능건수
$("#ajax_select_price").click(function(){
$('#dynamicTbody').append("");
//document.updatePasswordForm.action = '/web/user/sendRESTAPI_test_r1_send.do';
//document.updatePasswordForm.submit();
var searchWebParam = {
'p_mberId' : $('#mberId').val()
, 'p_apiKey' : $('#apiKey').val()
, 'p_page' : $('#page').val()
, 'p_pageSize' : $('#pageSize').val()
, 'p_startDate' : $('#startDate').val()
, 'p_endDate' : $('#endDate').val()
, 'p_testYn' : $('#testYn').val()
};
//검색 API를 Ajax로 이용 하기 위한 호출
$.ajax({
url : "./jsp_example_hstry_r1.jsp",
//형식을 json으로 받을 것이기 때문에 지정하여 주었습니다.
dataType : "json",
async : false,
type : "POST",
data : searchWebParam,
success: function (returnData, status) {
console.log('returnData : ', returnData);
if (returnData.data.resultCode=="0"){
console.log('returnData.resultCode : ', typeof returnData.resultCode);
if(returnData.data.objectList.length == 0){
alert('조회 결과가 없습니다.')
}else{
makeResult(returnData);
}
/*
$("span#sp").text(returnData.shortPrice);
$("span#lp").text(returnData.longPrice);
$("span#pp").text(returnData.picturePrice);
$("span#um").text(returnData.userMoney);
$("span#sspe").text(returnData.shortSendPsbltEa);
$("span#lspe").text(returnData.longSendPsbltEa);
$("span#pspe").text(returnData.pictureSendPsbltEa);
*/
} else{
alert(returnData.data.resultCode+" : "+returnData.data.msg);
}
},
error : function(request, status, error){
alert(request+"///"+error+"///"+status+"///"+"AJAX_ERROR");
console.log("AJAX_ERROR");
}
});
});
});
function makeResult(p_returnData){
var v_html = "";
try {
for (var i=0;i<p_returnData.data.objectList.length;i++){
var data = p_returnData.data.objectList[i];
console.log('p_returnData.data.objectList['+i+'] : ', data);
console.log('.sCnt : ', data.scnt);
v_html += "<tr>";
v_html += "<td>";
v_html += data.msgGroupId;
v_html += "</td>";
v_html += "<td>";
v_html += data.msgTypeName;
v_html += "</td>";
v_html += "<td>";
v_html += data.callFrom;
v_html += "</td>";
v_html += "<td>";
v_html += data.ttlCnt;
v_html += "</td>";
v_html += "<td>";
v_html += data.scnt;
v_html += "</td>";
v_html += "<td>";
v_html += data.fcnt;
v_html += "</td>";
v_html += "<td>";
v_html += data.wcnt;
v_html += "</td>";
v_html += "<td>";
v_html += data.msgResult;
v_html += "</td>";
v_html += "<td>";
v_html += data.smsTxt.substring(1,20);
v_html += "</td>";
v_html += "<td>";
v_html += data.regdate;
v_html += "</td>";
v_html += "<td>";
v_html += data.reqdate;
v_html += "</td>";
v_html += "<td>";
v_html += data.remainMsgCnt;
v_html += "</td>";
v_html += "</tr>";
}
} catch (error) {
console.error(error);
// Expected output: ReferenceError: nonExistentFunction is not defined
// (Note: the exact output may be browser-dependent)
}
v_html += "";
//$('#divResult').append("aaaaaa");
$('#dynamicTbody').html(v_html);
}
</script>
<div class="inner">
<!-- send top -->
<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>
<br/>
<h2>전체발송정보(샘플-문자온)</h2>
*mberId와 accessKey값은 실제 서비스시에는 jsp_example_hstry_r1.jsp 파일에 작성하여 사용하세요
<br/>(샘플 페이지에서는 월활한 테스트를 위해 파라미터 형식으로 제공합니다.)
<br/><br/><br/>
</div>
<div class="mem_cont_in">
<div class="input_list">
<!--
<div class="input_list_item">
<div class="input_left">*mberId
<input type="text" class="list_inputType1" id="mberId" maxlength="100" value="goodgkdus" size="100"/>
</div>
</div>
<div class="input_list_item">
<div class="input_left">*api key
<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="12e749877379aa7426275414050694b953" size="100"/>
</div>
</div>
-->
<div class="input_list_item">
<div class="input_left">페이지번호
<input type="text" class="list_inputType1" id="page" maxlength="100" value="" size="100"/>(기본값-1)
</div>
</div>
<div class="input_list_item">
<div class="input_left">페이지당 출력갯수
<input type="text" class="list_inputType1" id="pageSize" maxlength="100" value="" size="100"/>(기본값-30(30~500))
</div>
</div>
<div class="input_list_item">
<div class="input_left">조회시작일자
<input type="text" class="list_inputType1" id="startDate" maxlength="100" value="" size="100"/>(기본값 오늘)ex)20230601
</div>
</div>
<div class="input_list_item">
<div class="input_left">조회마감일자
<input type="text" class="list_inputType1" id="endDate" maxlength="100" value="" size="100"/>(기본값 내일)ex)20230602
</div>
</div>
<div class="input_list_item">
<div class="input_left">테스트여부
<input type="text" class="list_inputType1" id="testYn" maxlength="100" value="" size="100"/>(기본값 없음, YF-테스트(실패), YS-테스트(성공)
</div>
</div>
<div class="mem_btnWrap2">
&nbsp;<button type="button" class="mem_btn3" style="width: 100%;" id="ajax_select_price" onclick="return false;">전체발송정보 요청</button>
</div>
</div>
</div>
<div class="list_cont" id="listTab_1">
<table class="board_list">
<colgroup>
<col style="width: 200px;">
<col style="width: 220px;">
<col style="width: 200px;">
<col style="width: 100px;">
<col style="width: 100px;">
<col style="width: 100px;">
<col style="width: 100px;">
<col style="width: 100px;">
<col style="width: 200px;">
<col style="width: 200px;">
<col style="width: 200px;">
</colgroup>
<thead>
<tr>
<th scope="row">메시지ID
</th>
<th scope="row">문자구분(유형)
</th>
<th scope="row">발신번호
</th>
<th scope="row">전체요청수
</th>
<th scope="row">성공건수
</th>
<th scope="row">실패건수
</th>
<th scope="row">대기건수
</th>
<th scope="row">처리상태
</th>
<th scope="row">문자내용
</th>
<th scope="row">등록일시
</th>
<th scope="row">발송일시
</th>
<th scope="row">남겨진리스트수량(다음페이지여부)
</th>
</tr>
</thead>
<tbody id="dynamicTbody">
</tbody>
</table>
</div>
</div>
<!--// 마이페이지 - 비밀번호 변경 -->
</div>
<!--// send top -->
</div>
<!--// content 영역 -->

View File

@ -0,0 +1,109 @@
<%@page import="java.io.InputStreamReader"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="org.apache.http.HttpResponse"%>
<%@page import="org.apache.http.client.methods.HttpPost"%>
<%@page import="org.apache.http.impl.client.HttpClients"%>
<%@page import="org.apache.http.client.HttpClient"%>
<%@page import="org.apache.http.HttpEntity"%>
<%@page import="java.net.URLEncoder"%>
<%@page import="org.apache.http.entity.ContentType"%>
<%@page import="org.apache.http.entity.mime.content.FileBody"%>
<%@page import="java.io.File"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.nio.charset.Charset"%>
<%@page import="org.apache.http.entity.mime.HttpMultipartMode"%>
<%@page import="org.apache.http.entity.mime.MultipartEntityBuilder"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=utf-8 " pageEncoding="utf-8"%>
<%
try{
//기본 설정값
final String encodingType = "UTF-8";
final String boundary = "__BDR__";
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
//실제서비스용
final String mberId = "dudgusw"; //문자온 로그인 아이디
final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api ke
//테스트용
//String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
//String apiKey = request.getParameter("p_apiKey"); //발급받은 api key
/******************** 전송요청 URL ********************/
final String apiUrl = "http://localhost:8088/api/inqry/hstry";
/**************** 발송가능건수 예제 ******************/
System.out.println("전체발송이력");
Map<String, String> params = new HashMap<String, String>();
/******************** 인증정보 ********************/
params.put("mberId", mberId); //문자온 로그인 아이디
params.put("accessKey", apiKey); //APIKEY
/******************** 전송정보 ********************/
//(선택)
String p_page = request.getParameter("p_page"); //페이지번호 기본-1
String p_pageSize = request.getParameter("p_pageSize"); //페이지당 출력갯수-30(30~500)
String p_startDate = request.getParameter("p_startDate"); //조회시작일자-기본값 오늘
String p_endDate = request.getParameter("p_endDate"); //조회마감일자-기본값 내일
String p_testYn = request.getParameter("p_testYn"); //테스트데이터여부 '', 'YF', 'YS'
//추가 전송 데이터
params.put("page" , p_page); //페이지번호
params.put("pageSize" , p_pageSize); //페이지당 출력갯수
params.put("startDate" , p_startDate); //시작일자
params.put("endDate" , p_endDate); //마감일자
params.put("test_yn" , p_testYn); //테스트 여부
String result = "";
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
builder.setBoundary(boundary);
builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE);
builder.setCharset(Charset.forName(encodingType));
for(Iterator<String> i = params.keySet().iterator(); i.hasNext();){
String key = i.next();
//전달값이 없는 경우 오류
try{
builder.addTextBody(key, params.get(key)
, ContentType.create("Multipart/related", encodingType));
}catch(Exception ex){
//ex.printStackTrace()
}
}
HttpEntity entity = builder.build();
HttpClient client = HttpClients.createDefault();
HttpPost post = new HttpPost(apiUrl);
post.setEntity(entity);
HttpResponse res = client.execute(post);
if(res != null){
BufferedReader in = new BufferedReader(new InputStreamReader(res.getEntity().getContent(), encodingType));
String buffer = null;
while((buffer = in.readLine())!=null){
result += buffer;
}
in.close();
}
out.print(result);
}catch(Exception e){
out.print("{\"resultCode\":99,\"message\":\"WRONG API METHOD\"}");
}
%>

View File

@ -0,0 +1,142 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript" src="./jquery-3.5.0.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//발송가능건수
$("#ajax_select_price").click(function(){
$("span#sp").text("");
$("span#lp").text("");
$("span#pp").text("");
$("span#um").text("");
$("span#sspe").text("");
$("span#lspe").text("");
$("span#pspe").text("");
//document.updatePasswordForm.action = '/web/user/sendRESTAPI_test_r1_send.do';
//document.updatePasswordForm.submit();
var searchWebParam = {
'p_mberId' : $('#mberId').val()
, 'p_apiKey' : $('#apiKey').val()
};
//검색 API를 Ajax로 이용 하기 위한 호출
$.ajax({
url : "./jsp_example_select_price_r1.jsp",
//형식을 json으로 받을 것이기 때문에 지정하여 주었습니다.
dataType : "json",
async : false,
type : "POST",
data : searchWebParam,
success: function (returnData, status) {
console.log('returnData : ', returnData)
//alert(returnData.shortPrice);
//alert(returnData.resultCode);
//alert(returnData.message);
//alert(returnData.longPrice);
if (returnData.data.resultCode=="0"){
$("span#sp").text(returnData.data.shortPrice);
$("span#lp").text(returnData.data.longPrice);
$("span#pp").text(returnData.data.picturePrice);
$("span#um").text(returnData.data.mberMoney);
$("span#sspe").text(returnData.data.shortSendPsbltEa);
$("span#lspe").text(returnData.data.longSendPsbltEa);
$("span#pspe").text(returnData.data.pictureSendPsbltEa);
} else{
alert(returnData.data.resultCode+" : "+returnData.data.msg);
}
},
error : function(request, status, error){
alert(request+"///"+error+"///"+status+"///"+"AJAX_ERROR");
console.log("AJAX_ERROR");
}
});
});
});
</script>
<div class="inner">
<!-- send top -->
<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>
<br/>
<h2>발송가능건수(샘플-문자온)</h2>
*mberId와 accessKey값은 실제 서비스시에는 jsp_example_select_price_r1.jsp 파일에 작성하여 사용하세요
<br/>*샘플 페이지에서는 월활한 테스트를 위해 파라미터 형식으로 제공합니다.
<br/><br/><br/>
</div>
<div class="mem_cont_in">
<div class="input_list">
<!--
<div class="input_list_item">
<div class="input_left">*mberId
<input type="text" class="list_inputType1" id="mberId" maxlength="100" value="goodgkdus" size="100"/>
</div>
</div>
<div class="input_list_item">
<div class="input_left">*api key
<input type="text" class="list_inputType1" id="apiKey" maxlength="100" value="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/>
</div>
</div>
-->
<div class="mem_btnWrap2">
&nbsp;<button type="button" class="mem_btn3" style="width: 100%;" id="ajax_select_price" onclick="return false;">발송가능건수 요청</button>
</div>
</div>
</div>
<div class="mem_cont_in">
<div class="input_list">
<div class="input_list_item">
<div class="input_left">단문단가 : <span class="input_left" id="sp"></span>
</div>
<div class="input_left">장문단가 : <span class="input_left" id="lp"></span>
</div>
<div class="input_left">그림문자단가 : <span class="input_left" id="pp"></span>
</div>
<div class="input_left">현재보유금액 : <span class="input_left" id="um"></span>
</div>
<div class="input_left">단문발송가능건수 : <span class="input_left" id="sspe"></span>
</div>
<div class="input_left">장문발송가능건수 : <span class="input_left" id="lspe"></span>
</div>
<div class="input_left">그림문자발송가능건수 : <span class="input_left" id="pspe"></span>
</div>
</div>
</div>
</div>
</div>
<!--// 마이페이지 - 비밀번호 변경 -->
</div>
<!--// send top -->
</div>
<!--// content 영역 -->

View File

@ -0,0 +1,95 @@
<%@page import="java.io.InputStreamReader"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="org.apache.http.HttpResponse"%>
<%@page import="org.apache.http.client.methods.HttpPost"%>
<%@page import="org.apache.http.impl.client.HttpClients"%>
<%@page import="org.apache.http.client.HttpClient"%>
<%@page import="org.apache.http.HttpEntity"%>
<%@page import="java.net.URLEncoder"%>
<%@page import="org.apache.http.entity.ContentType"%>
<%@page import="org.apache.http.entity.mime.content.FileBody"%>
<%@page import="java.io.File"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.nio.charset.Charset"%>
<%@page import="org.apache.http.entity.mime.HttpMultipartMode"%>
<%@page import="org.apache.http.entity.mime.MultipartEntityBuilder"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@ page language="java" contentType="text/html; charset=utf-8 " pageEncoding="utf-8"%>
<%
try{
//기본 설정값
final String encodingType = "UTF-8";
final String boundary = "__BDR__";
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
//실제서비스용
final String mberId = "antelope"; //문자온 로그인 아이디
final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api key
//테스트용
//String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
//String apiKey = request.getParameter("p_apiKey"); //발급받은 api key
/******************** 전송요청 URL ********************/
final String apiUrl = "https://api.munjaon.co.kr/api/inqry/price";
/**************** 발송가능건수 예제 ******************/
System.out.println("잔액|단가|발송가능건수");
Map<String, String> params = new HashMap<String, String>();
/******************** 인증정보 ********************/
params.put("mberId", mberId); //문자온 로그인 아이디
params.put("accessKey", apiKey); //APIKEY
/******************** 전송정보 ********************/
String result = "";
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
builder.setBoundary(boundary);
builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE);
builder.setCharset(Charset.forName(encodingType));
for(Iterator<String> i = params.keySet().iterator(); i.hasNext();){
String key = i.next();
//전달값이 없는 경우 오류
try{
builder.addTextBody(key, params.get(key)
, ContentType.create("Multipart/related", encodingType));
}catch(Exception ex){
//ex.printStackTrace()
}
}
HttpEntity entity = builder.build();
HttpClient client = HttpClients.createDefault();
HttpPost post = new HttpPost(apiUrl);
post.setEntity(entity);
HttpResponse res = client.execute(post);
if(res != null){
BufferedReader in = new BufferedReader(new InputStreamReader(res.getEntity().getContent(), encodingType));
String buffer = null;
while((buffer = in.readLine())!=null){
result += buffer;
}
in.close();
}
out.print(result);
}catch(Exception e){
out.print("{\"resultCode\":99,\"message\":\"WRONG API METHOD\"}");
}
%>

View File

@ -0,0 +1,294 @@
<%@ 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" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!-- <meta http-equiv="content-type" content="text/html; charset=utf-8"> -->
<style>
.tabWrap {
width: 100%;
box-sizing: border-box;
margin-bottom: 20px;
}
.tabList {
display: flex;
justify-content: center; /* 가운데 정렬 */
padding: 0;
margin: 0;
height: 55px;
list-style: none;
background: #f4f4f4;
border-radius: 5px;
}
.tabList li {
flex: 1; /* 동일한 너비 */
text-align: center;
position: relative;
z-index: 10;
}
.tabList li::after{
content: "";
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 1px;
height: 30px;
background-color: #d4d4d4;
z-index: -1;
}
.tabList li:last-child::after{
content: none;
}
.tabList li a {
display: block;
text-decoration: none;
color: #333;
font-weight: 500;
line-height: 55px;
border-radius: 5px;
transition: background 0.2s ease;
}
.tabList li.active a {
background-color: #2e3a59;
color: white;
height: 55px;
}
.subte{
padding: 14px 25px;
border-radius: 5px;
border: 3px solid #ececec;
}
.subte p{
padding: 2px 0;
text-indent: -8px;
margin: 0 0 0 8px;
font-size: 15px;
line-height: 1.3;
color: #666;
font-weight: 500;
}
</style>
<!-- <script type="text/javascript" src="/js/jquery-3.5.0.js"></script> -->
<script type="text/javaScript" language="javascript">
$(document).ready(
function() {
//문자발송 함수
$("#ajax_select_price").click(
function() {
//문자발송 결과 데이터 수신 전 기존 데이터 초기화
$("#mgi").text("");
$("#sc").text("");
$("#fc").text("");
$("#bc").text("");
$("#mt").text("");
//문자발송 API로 전송할 데이터
var searchWebParam = {
'p_mberId' : $('#mberId').val() //회원 아이디
,
'p_apiKey' : $('#apiKey').val() //api 키
,
'p_callFrom' : $('#callFrom').val() //발신자 번호
,
'p_callToList' : $('#callToList').val()//수신자 번호
,
'p_smsTxt' : $('#smsTxt').val() //문자 내용
,
'p_nameStr' : $('#nameStr').val() //치환용 이름
,
'p_testYn' : $('#testYn').val()
//테스트 데이터 여부
};
console.log('searchWebParam : ', searchWebParam);
console.table(searchWebParam);
//문자발송 REST API를 Ajax로 이용하기 위한 호출
$.ajax({
url : "/sample_mjon/jsp_example_send_msg_r1.jsp", //요청 URL WEB-INF 아래 있으면 호출이 안됨
dataType : "json", //요청 값을 json으로 수신
async : false,
type : "POST", //POST 방식
data : searchWebParam,
success : function(returnData, status) {
console.log('returnData :: ', returnData);
if (returnData.data.resultCode == "0") { //결과가 성공인 경우 결과값 노출
$("#mgi").val(
returnData.data.msgGroupId);
$("#sc").val(
returnData.data.successCnt);
$("#fc").val(
returnData.data.failCnt);
$("#bc").val(
returnData.data.blockCnt);
$("#mt").val(
returnData.data.msgType);
} else { //결과가 실패인 경우 원인 노출
alert(returnData.data.resultCode
+ " : " + returnData.data.msg);
}
},
error : function(request, status, error) { //에러가 발생한 경우 에러 노출
alert(request + "///" + error + "///"
+ status + "///" + "AJAX_ERROR");
console.log("AJAX_ERROR");
}
});
});
});
</script>
<!-- for validator #3 -->
<div class="contWrap">
<div class="pageTitle">
<div class="pageIcon">
<img src="/pb/img/pageTitIcon4.png" alt="">
</div>
<h2 class="titType1 c_222222 fwBold">api 문자 발송 테스트</h2>
<p class="tType6 c_999999">발송 테스트</p>
</div>
<div class="pageCont">
<%@include file="/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp" %>
<!-- <div class="tabWrap"> -->
<!-- <ul class="tabList"> -->
<!-- <li class="active"><a href="/uss/ion/api/test/sms/sendMsgForm.do">문자발송</a></li> -->
<!-- <li><a href="/uss/ion/api/test/sms/sendMsgsForm.do">대량문자발송</a></li> -->
<!-- <li><a href="/uss/ion/api/test/sms/sendHstryFrom.do">전체발송내역</a></li> -->
<!-- <li><a href="/uss/ion/api/test/sms/sendHstryDetailFrom.do">상세발송내역</a></li> -->
<!-- <li><a href="/uss/ion/api/test/sms/sendSelectPriceFrom.do">발송가능건수</a></li> -->
<!-- </ul> -->
<!-- </div> -->
<!-- 설명문구 추가 -->
<!-- <div class="subte"> -->
<!-- <p>- </p> -->
<!-- <p>- 전송내역이 필요한 경우 기간 내에 다운로드하여 주시기 바랍니다.</p> -->
<!-- <p>- 전송내역이 필요한 경우 기간 내에 다운로드하여 주시기 바랍니다.</p> -->
<!-- <p>- 전송내역이 필요한 경우 기간 내에 다운로드하여 주시기 바랍니다.</p> -->
<!-- <p>- 전송내역이 필요한 경우 기간 내에 다운로드하여 주시기 바랍니다.</p> -->
<!-- </div> -->
<div class="pageCont">
<div class="listTop maxWth">
<span class="tType4 c_456ded fwBold">
<p>발신정보.</p>
</span>
</div>
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody>
<tr>
<th>발신자 번호 (callFrom)</th>
<td>
<input type="text" id="callFrom" name="callFrom"
class="input_text" value="01093414986" maxlength="100"
style="width: 300px;"></td>
</tr>
<tr>
<th>수신자 번호 (callToList)</th>
<td><input type="text" id="callToList" name="callToList"
class="input_text" value="01022265487,01011112222"
maxlength="300" style="width: 500px;"></td>
</tr>
<tr>
<th>문자 내용 (smsTxt)</th>
<td><input type="text" id="smsTxt" name="smsTxt"
class="input_text" value="문자 테스트~![*이름*]" maxlength="300"
style="width: 500px;"></td>
</tr>
<tr>
<th>치환용 이름 (nameStr)</th>
<td><input type="text" id="nameStr" name="nameStr"
class="input_text" value="홍길동1|홍길동2" maxlength="300"
style="width: 500px;"></td>
</tr>
<tr>
<th>테스트 여부 (testYn)</th>
<td><input type="text" id="testYn" name="testYn"
class="input_text" value="" maxlength="10" style="width: 100px;">
(기본값 없음, YF-테스트(실패), YS-테스트(성공))</td>
</tr>
</tbody>
</table>
<div class="btnWrap">
<input type="button" class="btnType1" value="발 송"
id="ajax_select_price">
</div>
<div class="listTop maxWth">
<span class="tType4 c_456ded fwBold">
<p>발송 결과.</p>
</span>
</div>
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody>
<tr>
<th>메세지ID :</th>
<td>
<input type="text" id="mgi">
</td>
</tr>
<tr>
<th>성공수량 :</th>
<td>
<input type="text" id="sc" style="width: 500px;">
</td>
</tr>
<tr>
<th>실패수량 :</th>
<td>
<input type="text" id="fc" style="width: 500px;">
</td>
</tr>
<tr>
<th>block수량 :</th>
<td>
<input type="text" id="bc" style="width: 500px;">
</td>
</tr>
<tr>
<th>메세지타입 :</th>
<td>
<input type="text" id="mt" style="width: 500px;">
</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@ -0,0 +1,279 @@
<%@ 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" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style>
.tabWrap {
width: 100%;
box-sizing: border-box;
margin-bottom: 20px;
}
.tabList {
display: flex;
justify-content: center; /* 가운데 정렬 */
padding: 0;
margin: 0;
height: 55px;
list-style: none;
background: #f4f4f4;
border-radius: 5px;
}
.tabList li {
flex: 1; /* 동일한 너비 */
text-align: center;
position: relative;
z-index: 10;
}
.tabList li::after{
content: "";
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 1px;
height: 30px;
background-color: #d4d4d4;
z-index: -1;
}
.tabList li:last-child::after{
content: none;
}
.tabList li a {
display: block;
text-decoration: none;
color: #333;
font-weight: 500;
line-height: 55px;
border-radius: 5px;
transition: background 0.2s ease;
}
.tabList li.active a {
background-color: #2e3a59;
color: white;
height: 55px;
}
.subte{
padding: 14px 25px;
border-radius: 5px;
border: 3px solid #ececec;
}
.subte p{
padding: 2px 0;
text-indent: -8px;
margin: 0 0 0 8px;
font-size: 15px;
line-height: 1.3;
color: #666;
font-weight: 500;
}
</style>
<!-- <script type="text/javascript" src="/js/jquery-3.5.0.js"></script> -->
<script type="text/javaScript" language="javascript">
$(document).ready(function(){
// 수신자 추가 버튼
$('#sendAdd').click(function(){
var nextId = $('.callTo').length+1;
var textData = ''
+ '<tr>'
+ '<th>수신자 '+nextId+' (p_callTo_'+nextId+')</th>'
+ '<td><input type="text" class="callTo" id="p_callTo_'+nextId+'" value="" maxlength="300" style="width: 500px;"></td>'
+ '</tr>'
+ '<tr>'
+ '<th>문자내용 '+nextId+' (p_smsTxt_'+nextId+')</th>'
+ '<td><input type="text" id="p_smsTxt_'+nextId+'" value="" maxlength="300" style="width: 500px;"></td>'
+ '</tr>'
;
// console.log('textData : ', textData);
$('#input_list').append(textData);
});
//대량문자발송
$("#ajax_select_price").click(function(){
$("#mgi").text("");
$("#sc").text("");
$("#fc").text("");
$("#bc").text("");
$("#mt").text("");
//문자발송 API로 전송할 데이터
var searchWebParam = {
'p_mberId' : $('#mberId').val()
, 'p_apiKey' : $('#apiKey').val()
, 'p_callFrom' : $('#callFrom').val()
, 'p_testYn' : $('#testYn').val()
};
var tagId = "";
//전송할 데이터에 수신자, 문자내용 개수만큼 추가해주기
$.each($('#input_list input'), function (index, tag){
tagId = $(tag).attr('id');
console.log('tagId: ', tagId);
if(tagId.startsWith('p_callTo') || tagId.startsWith('p_smsTxt')){
searchWebParam[tagId] = $(tag).val();
}
});
console.log('searchWebParam : ', searchWebParam);
console.table(searchWebParam);
//문자발송 REST API를 Ajax로 이용하기 위한 호출
$.ajax({
url : "/sample_mjon/jsp_example_send_msgs_r1.jsp", //요청 URL
dataType : "json", //요청 값을 json으로 수신
async : false,
type : "POST", //POST 방식
data : searchWebParam,
success: function (returnData, status) {
console.log('returnData : ', returnData);
if (returnData.data.resultCode=="0"){ //결과가 성공인 경우 결과값 노출
$("#mgi").val(returnData.data.msgGroupIdList);
$("#sc").val(returnData.data.successCnt);
$("#fc").val(returnData.data.failCnt);
$("#bc").val(returnData.data.blockCnt);
$("#mt").val(returnData.data.msgTypeList);
} else{ //결과가 실패인 경우 원인 노출
alert(returnData.data.resultCode+" : "+returnData.data.msg);
}
},
error : function(request, status, error){ //에러가 발생한 경우 에러 노출
alert(request+"///"+error+"///"+status+"///"+"AJAX_ERROR");
console.log("AJAX_ERROR");
}
});
});
});
</script>
</head>
<div class="contWrap">
<div class="pageTitle">
<div class="pageIcon">
<img src="/pb/img/pageTitIcon4.png" alt="">
</div>
<h2 class="titType1 c_222222 fwBold">api 문자 발송 테스트</h2>
<p class="tType6 c_999999">발송 테스트</p>
</div>
<div class="pageCont">
<%@include file="/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp" %>
<div class="pageCont">
<div class="listTop maxWth">
<span class="tType4 c_456ded fwBold">
<p>발신정보.</p>
</span>
</div>
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody id="input_list">
<tr>
<th>발신자 번호 (callFrom)</th>
<td>
<input type="text" id="callFrom" value="01093414986" maxlength="100" style="width: 300px;">
</td>
</tr>
<tr>
<th>테스트여부 (testYn)</th>
<td>
<input type="text" class="list_inputType1" id="testYn" style="width: 300px;"/>(기본값 없음, YF-테스트(실패), YS-테스트(성공)
</td>
</tr>
<tr>
<th>수신자 1 (p_callTo_1)</th>
<td>
<input type="text" class="callTo" id="p_callTo_1" value="01083584250" style="width: 500px;">
</td>
</tr>
<tr>
<th>문자내용 1 (p_smsTxt_1)</th>
<td><input type="text" id="p_smsTxt_1" value="testMsg" maxlength="300"
style="width: 500px;"></td>
</tr>
</tbody>
</table>
<div class="btnWrap">
<input type="button" class="btnType2" id="sendAdd" value="수신자 추가">
<input type="button" class="btnType1" value="발 송" id="ajax_select_price">
</div>
<div class="listTop maxWth">
<span class="tType4 c_456ded fwBold">
<p>발송 결과.</p>
</span>
</div>
<table class="tbType2">
<colgroup>
<col style="width: 20%">
<col style="width: 80%">
</colgroup>
<tbody>
<tr>
<th>메세지ID :</th>
<td>
<input type="text" id="mgi">
</td>
</tr>
<tr>
<th>성공수량 :</th>
<td>
<input type="text" id="sc" style="width: 500px;">
</td>
</tr>
<tr>
<th>실패수량 :</th>
<td>
<input type="text" id="fc" style="width: 500px;">
</td>
</tr>
<tr>
<th>block수량 :</th>
<td>
<input type="text" id="bc" style="width: 500px;">
</td>
</tr>
<tr>
<th>메세지타입 :</th>
<td>
<input type="text" id="mt" style="width: 500px;">
</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@ -25,7 +25,7 @@
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용
//실제서비스용
final String mberId = "dudgusw"; //문자온 로그인 아이디
final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api ke
final String apiKey = "c2ea9d96775c95c3de9096445db9971d658a"; //발급받은 api ke
//테스트용
@ -34,7 +34,8 @@
/******************** 전송 요청 URL ********************/
// final String apiUrl = "https://api.munjaon.co.kr/api/send/sendMsg"; //개발테스트용 URL
final String apiUrl = "http://localhost:8088/api/send/sendMsg"; //개발테스트용 URL URL
// final String apiUrl = "http://localhost:8088/api/send/sendMsg"; //개발테스트용 URL URL
final String apiUrl = "http://192.168.0.176:8088/api/send/sendMsg"; //개발테스트용 URL
/******************** 전송 정보 ********************/
//필수 값

View File

@ -25,7 +25,7 @@
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용
//실제서비스용
final String mberId = "dudgusw"; //문자온 로그인 아이디
final String apiKey = "0096519c62100b9eea77c040a6045c"; //발급받은 api ke
final String apiKey = "c2ea9d96775c95c3de9096445db9971d658a"; //발급받은 api ke
//테스트용
@ -34,7 +34,8 @@
/******************** 전송 요청 URL ********************/
// final String apiUrl = "http://api.munjaon.co.kr/api/send/sendMsgs"; //개발테스트용 URL
final String apiUrl = "http://localhost:8088/api/send/sendMsgs"; //개발테스트용 URL
// final String apiUrl = "http://localhost:8088/api/send/sendMsgs"; //개발테스트용 URL
final String apiUrl = "http://192.168.0.176:8088/api/send/sendMsgs"; //개발테스트용 URL
/******************** 전송 정보 ********************/
//필수 값’