diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkApiService.java b/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkApiService.java index 5338bd9..c533a6a 100644 --- a/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkApiService.java +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkApiService.java @@ -72,6 +72,7 @@ public class KkoTalkApiService { private static final Validator validator = Validation.buildDefaultValidatorFactory().getValidator(); private static final CharSequence ENVELOPE_ID = "{ENVELOPE_ID}"; + private static final CharSequence TOKEN = "{TOKEN}"; /** @@ -123,7 +124,9 @@ public class KkoTalkApiService { return callApi( HttpMethod.valueOf(API_VALID_TOKEN[1]), - HOST + API_VALID_TOKEN[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()), + HOST + API_VALID_TOKEN[0] + .replace(ENVELOPE_ID, reqDTO.getEnvelopeId()) + .replace(TOKEN, reqDTO.getToken()), null, getHeaders(orgMng)); } @@ -141,11 +144,9 @@ public class KkoTalkApiService { public ResponseEntity modifyStatus(final OrgMng orgMng, final KkotalkDTO.EnvelopeId reqDTO){ validate(reqDTO.getEnvelopeId(), null); - final String url = HOST + API_MODIFY_STATUS[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()); - return callApi( HttpMethod.valueOf(API_MODIFY_STATUS[1]), - url, + HOST + API_MODIFY_STATUS[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()), null, getHeaders(orgMng)); } @@ -171,14 +172,6 @@ public class KkoTalkApiService { HOST + API_BULKSTATUS[0], param, getHeaders(orgMng)); - - // KkotalkDTO.BulkStatusResponse res = webClient.exchangeKkotalk( - // HOST + API_BULKSTATUS[0], - // HttpMethod.valueOf(API_BULKSTATUS[1]), - // param, - // KkotalkDTO.BulkStatusResponse.class, - // getRlaybsnmInfo(reqDTO)); - // return res.getEnvelopeStatus().get(0); } /**