문자 관련 팝빌 URL
            args
                CorpNum : 팝빌회원 사업자번호
                UserID : 팝빌회원 아이디
                TOGO : BOX (전송내역조회 팝업)
            return
                팝빌 URL
            raise
                PopbillException
779163
def getURL(self, CorpNum, UserID, ToGo):
        
        if ToGo == None or ToGo == '':
            raise PopbillException(-99999999, "TOGO값이 입력되지 않았습니다.")

        result = self._httpget('/Message/?TG=' + ToGo, CorpNum, UserID)

        return result.url
353612
@Override
	public FAXSearchResult search(String corpNum, String sDate, String eDate,
			String[] state, Boolean reserveYN, Boolean senderOnly, int page,
			int perPage, String order, String qString) throws PopbillException {
		if (sDate == null)
			throw new PopbillException(-99999999, "시작일자가 입력되지 않았습니다.");
		if (eDate == null)
			throw new PopbillException(-99999999, "종료일자가 입력되지 않았습니다.");
		
		String uri = "/FAX/Search?SDate=" + sDate;
		uri += "&EDate=" + eDate;
		uri += "&State=" + Arrays.toString(state)
				.replaceAll("\\[|\\]|\\s", "");
		
		if (reserveYN) {
			uri += "&ReserveYN=1";
		} else {
			uri += "&ReserveYN=0";
		}
		
		if (senderOnly) {
			uri +="&SenderOnly=1";
		} else {
			uri += "&SenderOnly=0";
		}
		
		uri += "&Page=" + Integer.toString(page);
		uri += "&PerPage=" + Integer.toString(perPage);
		uri += "&Order=" + order;
		
		if (qString != null)
			uri += "&QString=" + qString;
		
		return httpget(uri, corpNum, null, FAXSearchResult.class);
	}
849036
def getInfo(self, CorpNum, MgtKey):
        

        if MgtKey == None or MgtKey == "":
            raise PopbillException(-99999999, "관리번호가 입력되지 않았습니다.")

        return self._httpget('/Cashbill/' + MgtKey, CorpNum)
351517
@Override
	public String getURL(String corpNum, String TOGO) throws PopbillException {
		return getURL(corpNum, null, TOGO);
	}
1192479
def getAccessURL(self, CorpNum, UserID):
        
        result = self._httpget('/?TG=LOGIN', CorpNum, UserID)
        return result.url
703024
def getXML(self, CorpNum, NTSConfirmNum, UserID=None):
        
        if NTSConfirmNum == None or len(NTSConfirmNum) != 24:
            raise PopbillException(-99999999, "국세청승인번호(NTSConfirmNum)가 올바르지 않습니다.")

        return self._httpget('/HomeTax/Taxinvoice/' + NTSConfirmNum + '?T=xml', CorpNum, UserID)
412914
def getMessages(self, CorpNum, ReceiptNum, UserID=None):
        
        if ReceiptNum == None or len(ReceiptNum) != 18:
            raise PopbillException(-99999999, "접수번호가 올바르지 않습니다.")

        return self._httpget('/Message/' + ReceiptNum, CorpNum, UserID)
488957
@Override
    public Response register(String CorpNum, Taxinvoice taxinvoice,
                             String UserID, boolean writeSpecification) throws PopbillException {
        if (taxinvoice == null)
            throw new PopbillException(-99999999, "세금계산서 정보가 입력되지 않았습니다.");

        String PostData = toJsonString(taxinvoice);

        if (writeSpecification) {
            PostData = "{\"writeSpecification\":true," + PostData.substring(1);
        }

        return httppost("/Taxinvoice", CorpNum, PostData, UserID,
                Response.class);
    }
1056486
@Override
    public float getUnitCost(String CorpNum, MessageType MsgType)
            throws PopbillException {
        if (MsgType == null)
            throw new PopbillException(-99999999, "메시지 유형이 입력되지 않았습니다.");

        UnitCostResponse response = httpget(
                "/Message/UnitCost?Type=" + MsgType.name(), CorpNum, null,
                UnitCostResponse.class);

        return response.unitCost;
    }
622188
@Override
	public Response registIssue(String CorpNum, Statement statement) throws PopbillException{
		return registIssue(CorpNum, statement, null);
	}
378635
def getATSTemplateMgtURL(self, CorpNum, UserID):
        
        result = self._httpget('/KakaoTalk/?TG=TEMPLATE', CorpNum, UserID)
        return result.url
850512
@Override
	public HTTaxinvoiceXMLResponse getXML(String CorpNum, String NTSConfirmNum,
			String UserID) throws PopbillException {
		if ( NTSConfirmNum.length() != 24 )
			throw new PopbillException(-99999999, "국세청승인번호가 올바르지 않았습니다.");
		return httpget("/HomeTax/Taxinvoice/" +NTSConfirmNum+"?T=xml", CorpNum, UserID, HTTaxinvoiceXMLResponse.class);
	}
1274532
@Override
	public String getPopUpURL(String CorpNum, int ItemCode, String MgtKey) throws PopbillException {
		if (MgtKey == null || MgtKey.isEmpty())
			throw new PopbillException(-99999999, "관리번호 가 입력되지 않았습니다.");
	
		return getPopUpURL(CorpNum, ItemCode, MgtKey, null);
	}
230185
@Override
	public CorpInfo getCorpInfo(String CorpNum) throws PopbillException {
		
		return httpget("/CorpInfo", CorpNum, null, CorpInfo.class);
	}
1261452
@Override
	public String getPrintURL(String CorpNum, String MgtKey)
			throws PopbillException {

		return getPrintURL(CorpNum, MgtKey, null);
	}
1136123
@Override
	public ContactInfo[] listContact(String CorpNum, String UserID) 
			throws PopbillException {
			
		return httpget("/IDs", CorpNum, UserID, ContactInfo[].class);
	}
262880
public Response assignMgtKey(String corpNum, MgtKeyType keyType, String itemKey,
                                 String mgtKey, String userID) throws PopbillException {
        if (itemKey == null || itemKey.isEmpty())
            throw new PopbillException(-99999999, "아이템키(ItemKey)가 입력되지 않았습니다.");

        if (mgtKey == null || mgtKey.isEmpty())
            throw new PopbillException(-99999999, "문서관리번호(MgtKey)가 입력되지 않았습니다.");

        String PostData = "MgtKey=" + mgtKey;

        return httppost("/Taxinvoice/" + itemKey + "/" + keyType.name(),
                corpNum, PostData, userID, "", Response.class, "application/x-www-form-urlencoded; charset=utf-8");
    }