From c38f61bfec75425206cbb4029ab624ace4bc88bb Mon Sep 17 00:00:00 2001 From: "hehihoho3@gmail.com" Date: Wed, 30 Apr 2025 17:47:30 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AC=B8=EC=9E=90=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=EB=B0=8F=20=EA=B8=B0=EB=8A=A5=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/sms/web/ApiSmsTestMsgController.java | 40 +- .../ion/api/test/sms/include/tab_include.jsp | 77 +++- .../sms/jsp_example_hstry_detail_form_r1.jsp | 225 ----------- .../test/sms/jsp_example_hstry_detail_r1.jsp | 110 ------ .../test/sms/jsp_example_hstry_form_r1.jsp | 258 ------------ .../ion/api/test/sms/jsp_example_hstry_r1.jsp | 109 ------ .../sms/jsp_example_select_price_form_r1.jsp | 142 ------- .../test/sms/jsp_example_select_price_r1.jsp | 95 ----- .../ion/api/test/sms/sendHstryDetailFrom.jsp | 256 ++++++++++++ .../uss/ion/api/test/sms/sendHstryFrom.jsp | 369 ++++++++++++++++++ .../jsp/uss/ion/api/test/sms/sendMsgForm.jsp | 241 +++++------- .../jsp/uss/ion/api/test/sms/sendMsgsForm.jsp | 15 - .../ion/api/test/sms/sendSelectPriceFrom.jsp | 201 ++++++++++ .../jsp_example_hstry_detail_r1.jsp | 5 +- .../sample_mjon/jsp_example_hstry_r1.jsp | 4 +- .../jsp_example_select_price_r1.jsp | 6 +- .../sample_mjon/jsp_example_send_msg_r1.jsp | 2 +- .../sample_mjon/jsp_example_send_msgs_r1.jsp | 2 +- 18 files changed, 1043 insertions(+), 1114 deletions(-) delete mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_detail_form_r1.jsp delete mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_detail_r1.jsp delete mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_form_r1.jsp delete mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_r1.jsp delete mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_select_price_form_r1.jsp delete mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_select_price_r1.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendHstryDetailFrom.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendHstryFrom.jsp create mode 100644 src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendSelectPriceFrom.jsp diff --git a/src/main/java/itn/let/mjo/api/sms/web/ApiSmsTestMsgController.java b/src/main/java/itn/let/mjo/api/sms/web/ApiSmsTestMsgController.java index aab336f..8b133e6 100644 --- a/src/main/java/itn/let/mjo/api/sms/web/ApiSmsTestMsgController.java +++ b/src/main/java/itn/let/mjo/api/sms/web/ApiSmsTestMsgController.java @@ -54,7 +54,7 @@ public class ApiSmsTestMsgController { * @methodName : ussIonApikeyUserAPIKEYList * @author : 이호영 * @date : 2025. 4. 29. - * @description : api 문자 발송 테스트 + * @description : 문자발송 * @return : String * @param searchVO * @param request @@ -71,9 +71,9 @@ public class ApiSmsTestMsgController { 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 , @@ -84,4 +84,40 @@ public class ApiSmsTestMsgController { return "/uss/ion/api/test/sms/sendMsgsForm"; } + + // 그룹데이터 조회 + @RequestMapping(value= {"/uss/ion/api/test/sms/sendHstryFrom.do"}) + public String sendHstryFrom(@ModelAttribute("searchVO") ApiKeyVO searchVO, + HttpServletRequest request , + ModelMap model) throws Exception{ + //value 값 가져오기 + + + return "/uss/ion/api/test/sms/sendHstryFrom"; + + } + + // 문자데이터 조회 + @RequestMapping(value= {"/uss/ion/api/test/sms/sendHstryDetailFrom.do"}) + public String sendHstryDetailFrom(@ModelAttribute("searchVO") ApiKeyVO searchVO, + HttpServletRequest request , + ModelMap model) throws Exception{ + //value 값 가져오기 + + + return "/uss/ion/api/test/sms/sendHstryDetailFrom"; + + } + + // 금액 조회 + @RequestMapping(value= {"/uss/ion/api/test/sms/sendSelectPriceFrom.do"}) + public String sendSelectPriceFrom(@ModelAttribute("searchVO") ApiKeyVO searchVO, + HttpServletRequest request , + ModelMap model) throws Exception{ + //value 값 가져오기 + + + return "/uss/ion/api/test/sms/sendSelectPriceFrom"; + + } } \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp index 841933b..6d85570 100644 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp @@ -4,6 +4,44 @@ <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> + diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_detail_form_r1.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_detail_form_r1.jsp deleted file mode 100644 index 580b266..0000000 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_detail_form_r1.jsp +++ /dev/null @@ -1,225 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - - - - - -
- -
- -
-
-

돌아가기

-
-

상세발송정보(샘플-문자온)

- *mberId와 accessKey값은 실제 서비스시에는 jsp_example_hstry_r1.jsp 파일에 작성하여 사용하세요 -
(샘플 페이지에서는 월활한 테스트를 위해 파라미터 형식으로 제공합니다.) -


- -
-
-
- - -
-
*메시지ID - -
-
-
-
페이지번호 - (기본값-1) -
-
-
-
페이지당 출력갯수 - (기본값-30(30~500)) -
-
-
-
테스트여부 - (기본값 없음, YF-테스트(실패), YS-테스트(성공) -
-
- -
-   - -
- -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
메시지상세ID - 문자구분(유형) - 발신번호 - 수신번호 - 처리상태 - 등록일시 - 발송일시 - 남겨진리스트수량(다음페이지여부) -
-
- -
- -
- -
- - diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_detail_r1.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_detail_r1.jsp deleted file mode 100644 index eced3b9..0000000 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_detail_r1.jsp +++ /dev/null @@ -1,110 +0,0 @@ -<%@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 params = new HashMap(); - - /******************** 인증정보 ********************/ - 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 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\"}"); - } - -%> \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_form_r1.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_form_r1.jsp deleted file mode 100644 index 1187904..0000000 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_form_r1.jsp +++ /dev/null @@ -1,258 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - - - - - -
- -
- -
-
-

돌아가기

-
-

전체발송정보(샘플-문자온)

- *mberId와 accessKey값은 실제 서비스시에는 jsp_example_hstry_r1.jsp 파일에 작성하여 사용하세요 -
(샘플 페이지에서는 월활한 테스트를 위해 파라미터 형식으로 제공합니다.) -


- -
-
-
- - -
-
페이지번호 - (기본값-1) -
-
-
-
페이지당 출력갯수 - (기본값-30(30~500)) -
-
-
-
조회시작일자 - (기본값 오늘)ex)20230601 -
-
-
-
조회마감일자 - (기본값 내일)ex)20230602 -
-
-
-
테스트여부 - (기본값 없음, YF-테스트(실패), YS-테스트(성공) -
-
-
-   - -
- -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
메시지ID - - 문자구분(유형) - - 발신번호 - - 전체요청수 - - 성공건수 - 실패건수 - 대기건수 - 처리상태 - 문자내용 - 등록일시 - 발송일시 - 남겨진리스트수량(다음페이지여부) -
-
- -
- -
- -
- - diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_r1.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_r1.jsp deleted file mode 100644 index 8d2cdd0..0000000 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_hstry_r1.jsp +++ /dev/null @@ -1,109 +0,0 @@ -<%@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 params = new HashMap(); - - /******************** 인증정보 ********************/ - 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 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\"}"); - } - -%> \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_select_price_form_r1.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_select_price_form_r1.jsp deleted file mode 100644 index a260256..0000000 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_select_price_form_r1.jsp +++ /dev/null @@ -1,142 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - - - - - -
- -
- -
-
-

돌아가기

-
-

발송가능건수(샘플-문자온)

- *mberId와 accessKey값은 실제 서비스시에는 jsp_example_select_price_r1.jsp 파일에 작성하여 사용하세요 -
*샘플 페이지에서는 월활한 테스트를 위해 파라미터 형식으로 제공합니다. -


- -
-
-
- - -
-   - -
- -
-
- -
-
-
-
단문단가 : -
- -
장문단가 : -
- -
그림문자단가 : -
- -
현재보유금액 : -
- -
단문발송가능건수 : -
- -
장문발송가능건수 : -
- -
그림문자발송가능건수 : -
- -
- -
-
- -
- -
- -
- - diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_select_price_r1.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_select_price_r1.jsp deleted file mode 100644 index ee7bcdd..0000000 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/jsp_example_select_price_r1.jsp +++ /dev/null @@ -1,95 +0,0 @@ -<%@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 params = new HashMap(); - - /******************** 인증정보 ********************/ - 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 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\"}"); - } - -%> \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendHstryDetailFrom.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendHstryDetailFrom.jsp new file mode 100644 index 0000000..d50ce45 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendHstryDetailFrom.jsp @@ -0,0 +1,256 @@ +<%@ 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" %> + + + + + + + + + +
+
+
+ +
+

api 문자 발송 테스트

+

발송 테스트

+
+ +
+ <%@include file="/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp" %> + +
+
+ +

조회 정보.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
* 메시지ID
페이지번호
(기본값-1)
페이지당 출력갯수
(기본값-30(30~500))
테스트 여부
(testYn)
+ (기본값 없음, YF-테스트(실패), YS-테스트(성공))
+
+ +
+ +
+ +

조회 결과.

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
메세지ID문자구분(유형)발신번호수신번호처리상태등록일시발송일시남은 페이지
+ 조회하면 데이터가 나옵니다. +
+
+ +
+ +
+ +
+ + diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendHstryFrom.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendHstryFrom.jsp new file mode 100644 index 0000000..7bd0ff2 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendHstryFrom.jsp @@ -0,0 +1,369 @@ +<%@ 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" %> + + + + + + + + + + +
+
+
+ +
+

api 문자 발송 테스트

+

발송 테스트

+
+ +
+ <%@include file="/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp" %> + +
+
+ +

조회 정보.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
페이지번호
(기본값-1)
페이지당 출력갯수
(기본값-30(30~500))
조회시작일자
(기본값 오늘)ex)20230601
조회마감일자
(기본값 내일)ex)20230602
테스트 여부
(testYn)
+ (기본값 없음, YF-테스트(실패), YS-테스트(성공))
+
+ +
+ +
+ +

조회 결과.

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
메세지ID문자구분(유형)발신번호전체건수성공건수실패건수대기건수처리상태문자내용등록일시발송일시남은 페이지
+ 조회하면 데이터가 나옵니다. +
+
+ + + + + + <%-- +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
메시지ID + + 문자구분(유형) + + 발신번호 + + 전체요청수 + + 성공건수 + 실패건수 + 대기건수 + 처리상태 + 문자내용 + 등록일시 + 발송일시 + 남겨진리스트수량(다음페이지여부) +
+
--%> + +
+ +
+ +
+ + diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendMsgForm.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendMsgForm.jsp index ecb25fe..c2a1740 100644 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendMsgForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendMsgForm.jsp @@ -64,21 +64,6 @@ 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; -} @@ -164,131 +149,103 @@ -
-
-
- -
-

api 문자 발송 테스트

-

발송 테스트

-
- -
- <%@include file="/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp" %> - - - - - - - - - - - - - - - - - - - - - -
-
- -

발신정보.

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
발신자 번호 (callFrom) -
수신자 번호 (callToList)
문자 내용 (smsTxt)
치환용 이름 (nameStr)
테스트 여부 (testYn) - (기본값 없음, YF-테스트(실패), YS-테스트(성공))
-
- -
-
- -

발송 결과.

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
메세지ID : - -
성공수량 : - -
실패수량 : - -
block수량 : - -
메세지타입 : - -
-
+
+
+
+
+

api 문자 발송 테스트

+

발송 테스트

+
+ +
+ <%@include file="/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp" %> + +
+
+ +

발신정보.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
발신자 번호 (callFrom)
수신자 번호 (callToList)
문자 내용 (smsTxt)
치환용 이름 (nameStr)
테스트 여부 (testYn) + (기본값 없음, YF-테스트(실패), YS-테스트(성공))
+ +
+ +
+ +
+ +

발송 결과.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
메세지ID : + +
성공수량 : + +
실패수량 : + +
block수량 : + +
메세지타입 : + +
+
+
+
diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendMsgsForm.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendMsgsForm.jsp index e07809e..eb5ffcb 100644 --- a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendMsgsForm.jsp +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendMsgsForm.jsp @@ -65,21 +65,6 @@ 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; -} diff --git a/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendSelectPriceFrom.jsp b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendSelectPriceFrom.jsp new file mode 100644 index 0000000..e6d10f0 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/uss/ion/api/test/sms/sendSelectPriceFrom.jsp @@ -0,0 +1,201 @@ +<%@ 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" %> + + + + + + + + + + +
+
+
+ +
+

api 문자 발송 테스트

+

발송 테스트

+
+ +
+ <%@include file="/WEB-INF/jsp/uss/ion/api/test/sms/include/tab_include.jsp" %> + +
+ +
+ +
+ +

발송 결과.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
단문단가 : +
장문단가 : +
그림문자단가 : +
현재보유금액 : +
단문발송가능건수 : +
장문발송가능건수 : +
그림문자발송가능건수 : +
+ +
+ +
+ +
+ + diff --git a/src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp index eced3b9..8ee8f62 100644 --- a/src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_hstry_detail_r1.jsp @@ -25,7 +25,7 @@ //회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요 //실제서비스용 final String mberId = "dudgusw"; //문자온 로그인 아이디 - final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api ke + final String apiKey = "c2ea9d96775c95c3de9096445db9971d658a"; //발급받은 api ke //테스트용 //String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디 @@ -33,7 +33,8 @@ /******************** 전송요청 URL ********************/ - final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; // 전송요청 URL +// final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail"; // 전송요청 URL + final String apiUrl = "http://119.193.215.98:8087/api/inqry/hstryDetail"; //개발테스트용 URL // String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail"; /**************** 발송가능건수 예제 ******************/ diff --git a/src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp index 8d2cdd0..41fafdf 100644 --- a/src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_hstry_r1.jsp @@ -25,7 +25,7 @@ //회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요 //실제서비스용 final String mberId = "dudgusw"; //문자온 로그인 아이디 - final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api ke + final String apiKey = "c2ea9d96775c95c3de9096445db9971d658a"; //발급받은 api key //테스트용 //String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디 @@ -33,7 +33,7 @@ /******************** 전송요청 URL ********************/ - final String apiUrl = "http://localhost:8088/api/inqry/hstry"; + final String apiUrl = "http://119.193.215.98:8087/api/inqry/hstry"; //개발테스트용 URL /**************** 발송가능건수 예제 ******************/ System.out.println("전체발송이력"); diff --git a/src/main/webapp/sample_mjon/jsp_example_select_price_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_select_price_r1.jsp index ee7bcdd..c0e3c1c 100644 --- a/src/main/webapp/sample_mjon/jsp_example_select_price_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_select_price_r1.jsp @@ -24,8 +24,8 @@ //회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요 //실제서비스용 - final String mberId = "antelope"; //문자온 로그인 아이디 - final String apiKey = "59d8d714ad68ae2e24e3ae2055334e3e"; //발급받은 api key + final String mberId = "dudgusw"; //문자온 로그인 아이디 + final String apiKey = "c2ea9d96775c95c3de9096445db9971d658a"; //발급받은 api ke //테스트용 @@ -34,7 +34,7 @@ /******************** 전송요청 URL ********************/ - final String apiUrl = "https://api.munjaon.co.kr/api/inqry/price"; + final String apiUrl = "http://119.193.215.98:8087/api/inqry/price"; /**************** 발송가능건수 예제 ******************/ System.out.println("잔액|단가|발송가능건수"); diff --git a/src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp index d3379cd..756d76d 100644 --- a/src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_send_msg_r1.jsp @@ -35,7 +35,7 @@ /******************** 전송 요청 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://192.168.0.176:8088/api/send/sendMsg"; //개발테스트용 URL + final String apiUrl = "http://119.193.215.98:8087/api/send/sendMsg"; //개발테스트용 URL /******************** 전송 정보 ********************/ //필수 값 diff --git a/src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp b/src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp index 9dae4b9..7d6d70f 100644 --- a/src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp +++ b/src/main/webapp/sample_mjon/jsp_example_send_msgs_r1.jsp @@ -35,7 +35,7 @@ /******************** 전송 요청 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://192.168.0.176:8088/api/send/sendMsgs"; //개발테스트용 URL + final String apiUrl = "http://119.193.215.98:8087/api/send/sendMsgs"; //개발테스트용 URL /******************** 전송 정보 ********************/ //필수 값’