//과금정보 확인
        public ChargeInfo GetChargeInfo(string CorpNum, KakaoType msgType, string UserID = null)
        {
            ChargeInfo response =
                httpget <ChargeInfo>("/KakaoTalk/ChargeInfo?Type=" + msgType.ToString(), CorpNum, UserID);

            return(response);
        }
        //전송단가 확인
        public Single GetUnitCost(string CorpNum, KakaoType msgType, string UserID = null)
        {
            UnitCostResponse response =
                httpget <UnitCostResponse>("/KakaoTalk/UnitCost?Type=" + msgType.ToString(), CorpNum, UserID);

            return(response.unitCost);
        }
Exemplo n.º 3
0
    void KakaoTypeSetting()
    {
        // Reset
        kakao_group_a.SetActive(false);
        kakao_group_b.SetActive(false);
        kakao_group_c.SetActive(false);
        kakao_group_d.SetActive(false);

        for (int i = 0; i < 4; i++)
        {
            kakao_scroll_view[i].SetActive(false);
        }

        if (kakaoType == KakaoType.Atype)
        {
            if (kakao_msg_count > 16)             // C Type
            {
                kakaoType = KakaoType.Ctype;
            }
            else
            {
                kakaoType = KakaoType.Btype;
            }
        }
        else if (kakaoType == KakaoType.Btype || kakaoType == KakaoType.Ctype)
        {
            kakaoType = KakaoType.Dtype;
        }

        switch (kakaoType)
        {
        case KakaoType.Btype:
            kakao_scroll_view[1].SetActive(true);
            kakao_group_b.SetActive(true);
            StartCoroutine("KakaoBtypeProcess");
            break;

        case KakaoType.Ctype:
            kakao_scroll_view[2].SetActive(true);
            kakao_group_c.SetActive(true);
            StartCoroutine("KakaoCtypeProcess");
            break;

        case KakaoType.Dtype:
            kakao_scroll_view[3].SetActive(true);
            kakao_group_d.SetActive(true);
            kakao_bt_back.SetActive(false);
            StartCoroutine("KakaoDtypeProcess");
            break;
        }
        iTween.MoveAdd(mainPush[0].sns_panel, iTween.Hash("x", -1080f, "time", 0.5f));
    }
        protected void Page_Load(object sender, EventArgs e)
        {
            /**
             * 팝빌 카카오톡 API 서비스 과금정보를 확인합니다.
             * - https://docs.popbill.com/kakao/dotnet/api#GetChargeInfo
             */

            // 팝빌회원 사업자번호, '-' 제외 10자리
            String testCorpNum = "1234567890";

            // 카카오톡 유형, ATS-알림톡, FTS-친구톡 텍스트, FMS-친구톡 이미지
            KakaoType kType = KakaoType.ATS;

            try
            {
                chrgInfo = Global.kakaoService.GetChargeInfo(testCorpNum, kType);
            }
            catch (PopbillException ex)
            {
                code    = ex.code.ToString();
                message = ex.Message;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            /**
             * 카카오톡 전송시 과금되는 포인트 단가를 확인합니다.
             * - https://docs.popbill.com/kakao/dotnet/api#GetUnitCost
             */

            // 팝빌회원 사업자번호, '-' 제외 10자리
            String testCorpNum = "1234567890";

            // 카카오톡 전송유형 ATS(알림톡), FTS(친구톡 텍스트), FMS(친구톡 이미지)
            KakaoType kType = KakaoType.ATS;

            try
            {
                unitCost = Global.kakaoService.GetUnitCost(testCorpNum, kType);
            }
            catch (PopbillException ex)
            {
                code    = ex.code.ToString();
                message = ex.Message;
            }
        }
Exemplo n.º 6
0
 public ChargeInfo GetChargeInfo(String CorpNum, KakaoType msgType)
 {
     return(GetChargeInfo(CorpNum, msgType, null));
 }