api key 수정
This commit is contained in:
parent
68f574b916
commit
b56a88965b
@ -195,9 +195,9 @@
|
|||||||
<td>Object</td>
|
<td>Object</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>[data].msgGroupId</th>
|
<th>[data].msgGroupIdList</th>
|
||||||
<td>메세지 그룹 ID</td>
|
<td>메세지 그룹 ID 리스트</td>
|
||||||
<td>String</td>
|
<td>List String</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>[data].msgType</th>
|
<th>[data].msgType</th>
|
||||||
@ -242,8 +242,12 @@
|
|||||||
<p>"resultCode":"0"</p>
|
<p>"resultCode":"0"</p>
|
||||||
<p>, "data":[</p>
|
<p>, "data":[</p>
|
||||||
<div>
|
<div>
|
||||||
<p>"msgGroupId":"MSGGID_0000000000000"</p>
|
<p>"msgGroupIdList":[</p>
|
||||||
<p>, "msgType":"4"</p>
|
<p> 0:"MSGGID_0000000000000"</p>
|
||||||
|
<p> 1:"MSGGID_0000000000001"</p>
|
||||||
|
<p> 2:"MSGGID_0000000000002"</p>
|
||||||
|
<p>]</p>
|
||||||
|
<p>, "msgType":"LMS"</p>
|
||||||
<p>, "blockCnt":"0"</p>
|
<p>, "blockCnt":"0"</p>
|
||||||
<p>, "failCnt":"0"</p>
|
<p>, "failCnt":"0"</p>
|
||||||
<p>, "successCnt":"3"</p>
|
<p>, "successCnt":"3"</p>
|
||||||
|
|||||||
@ -134,7 +134,7 @@
|
|||||||
</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="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -24,19 +24,19 @@
|
|||||||
|
|
||||||
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
|
//회원아이디, APIKEY - 보안을 위해 실제 서비스 시에는 이곳에 mberId와 apiKey 값을 적어서 사용해주세요
|
||||||
//실제서비스용
|
//실제서비스용
|
||||||
final String mberId = "goodgkdus"; //문자온 로그인 아이디
|
// final String mberId = "goodgkdus"; //문자온 로그인 아이디
|
||||||
final String apiKey = "12e749877379aa7426275414050694b953"; //발급받은 api key
|
// final String apiKey = "12e749877379aa7426275414050694b953"; //발급받은 api key
|
||||||
|
|
||||||
//테스트용
|
//테스트용
|
||||||
//String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
|
String mberId = request.getParameter("p_mberId"); //문자온 로그인 아이디
|
||||||
//String apiKey = request.getParameter("p_apiKey"); //발급받은 api key
|
String apiKey = request.getParameter("p_apiKey"); //발급받은 api key
|
||||||
|
|
||||||
|
|
||||||
/******************** 전송요청 URL ********************/
|
/******************** 전송요청 URL ********************/
|
||||||
//final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstryDetail";
|
//final String apiUrl = "https://api.munjaon.co.kr/api/inqry/hstryDetail";
|
||||||
// final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail";
|
final String apiUrl = "http://localhost:8088/api/inqry/hstryDetail";
|
||||||
|
|
||||||
String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail";
|
// String apiUrl = "https://apidev.munjaon.co.kr:9998/api/inqry/hstryDetail";
|
||||||
/**************** 발송가능건수 예제 ******************/
|
/**************** 발송가능건수 예제 ******************/
|
||||||
System.out.println("상세발송이력");
|
System.out.println("상세발송이력");
|
||||||
|
|
||||||
|
|||||||
@ -89,7 +89,7 @@
|
|||||||
</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="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -152,7 +152,7 @@
|
|||||||
</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="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -42,8 +42,8 @@
|
|||||||
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessTest/Test"; // 전송요청 URL
|
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessTest/Test"; // 전송요청 URL
|
||||||
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessKey/SendMsg"; // 전송요청 URL
|
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessKey/SendMsg"; // 전송요청 URL
|
||||||
|
|
||||||
// final String apiUrl = "http://localhost:8088/api/api/send/sendMsg";
|
final String apiUrl = "http://localhost:8088/api/send/sendMsg";
|
||||||
final String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsg";
|
// final String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsg";
|
||||||
|
|
||||||
Map<String, String> params = new HashMap<String, String>();
|
Map<String, String> params = new HashMap<String, String>();
|
||||||
/******************** 인증정보 ********************/
|
/******************** 인증정보 ********************/
|
||||||
|
|||||||
@ -47,12 +47,14 @@
|
|||||||
|
|
||||||
success: function (returnData, status) {
|
success: function (returnData, status) {
|
||||||
|
|
||||||
|
console.log('returnData : ', returnData);
|
||||||
|
|
||||||
if (returnData.resultCode=="0"){
|
if (returnData.resultCode=="0"){
|
||||||
$("span#mgi").text(returnData.data.msgGroupId);
|
$("span#mgi").text(returnData.data.msgGroupIdList);
|
||||||
$("span#sc").text(returnData.data.successCnt);
|
$("span#sc").text(returnData.data.successCnt);
|
||||||
$("span#fc").text(returnData.data.failCnt);
|
$("span#fc").text(returnData.data.failCnt);
|
||||||
$("span#bc").text(returnData.data.blockCnt);
|
$("span#bc").text(returnData.data.blockCnt);
|
||||||
$("span#mt").text(returnData.data.msgType);
|
$("span#mt").text(returnData.data.msgTypeList);
|
||||||
|
|
||||||
} else{
|
} else{
|
||||||
alert(returnData.resultCode+" : "+returnData.data);
|
alert(returnData.resultCode+" : "+returnData.data);
|
||||||
@ -130,7 +132,7 @@
|
|||||||
</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="24cb8ec4ed7c16969d2ab2988dd2406ee2820" size="100"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -41,9 +41,9 @@
|
|||||||
//String sms_url = "https://apis.aligo.in/send/"; // ì ì¡ìì² URL
|
//String sms_url = "https://apis.aligo.in/send/"; // ì ì¡ìì² URL
|
||||||
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessTest/Test"; // ì ì¡ìì² URL
|
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessTest/Test"; // ì ì¡ìì² URL
|
||||||
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessKey/SendMsg"; // ì ì¡ìì² URL
|
//String sms_url = "https://api.munjaon.co.kr:9998/api/accessKey/SendMsg"; // ì ì¡ìì² URL
|
||||||
// String apiUrl = "http://localhost:8088/api/send/sendMsgs"; // ì ì¡ìì² URL
|
String apiUrl = "http://localhost:8088/api/send/sendMsgs"; // ì ì¡ìì² URL
|
||||||
|
|
||||||
String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsgs"; // 전송요청 URL
|
// String apiUrl = "https://apidev.munjaon.co.kr:9998/api/send/sendMsgs"; // 전송요청 URL
|
||||||
|
|
||||||
Map<String, String> params = new HashMap<String, String>();
|
Map<String, String> params = new HashMap<String, String>();
|
||||||
params.put("mberId", mberId); // SMS ìì´ë
|
params.put("mberId", mberId); // SMS ìì´ë
|
||||||
@ -72,6 +72,7 @@
|
|||||||
//String p_msgKind = request.getParameter("p_msgKind"); //N-ì¼ë°,A-ê´ê³ ,C-ì ê±°
|
//String p_msgKind = request.getParameter("p_msgKind"); //N-ì¼ë°,A-ê´ê³ ,C-ì ê±°
|
||||||
//String p_msgKind = "N"; //N-ì¼ë°,A-ê´ê³ ,C-ì ê±° - ì´ê¸° ì§ììí¨
|
//String p_msgKind = "N"; //N-ì¼ë°,A-ê´ê³ ,C-ì ê±° - ì´ê¸° ì§ììí¨
|
||||||
String p_smsTxt_1 = request.getParameter("p_smsTxt_1"); //SMSì© ë©ìì§ë³¸ë¬¸
|
String p_smsTxt_1 = request.getParameter("p_smsTxt_1"); //SMSì© ë©ìì§ë³¸ë¬¸
|
||||||
|
String p_testYn = request.getParameter("p_testYn"); //테스트데이터여부 '', 'YF', 'YS'
|
||||||
//String p_nameStr_1 = request.getParameter("p_nameStr_1"); //ì¹í문ì
|
//String p_nameStr_1 = request.getParameter("p_nameStr_1"); //ì¹í문ì
|
||||||
|
|
||||||
//ì íê°
|
//ì íê°
|
||||||
@ -88,6 +89,7 @@
|
|||||||
|
|
||||||
//ì¶ê° ì ì¡ ë°ì´í°
|
//ì¶ê° ì ì¡ ë°ì´í°
|
||||||
params.put("callFrom" , p_callFrom); //ë°ì ë²í¸
|
params.put("callFrom" , p_callFrom); //ë°ì ë²í¸
|
||||||
|
params.put("test_yn" , p_testYn); //테스트 여부
|
||||||
|
|
||||||
//params.put("callTo_1" , p_callTo_1); //ìì ë²í¸
|
//params.put("callTo_1" , p_callTo_1); //ìì ë²í¸
|
||||||
//params.put("eachPrice" , p_eachPrice); //ì ì¡ë¬¸ì ê°ë³ê°ê²©
|
//params.put("eachPrice" , p_eachPrice); //ì ì¡ë¬¸ì ê°ë³ê°ê²©
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user