// 팩스 전송단가확인 private void btnUnitCost_Click(object sender, EventArgs e) { try { float unitCost = faxService.GetUnitCost(txtCorpNum.Text); MessageBox.Show(unitCost.ToString()); } catch (PopbillException ex) { MessageBox.Show(ex.code.ToString() + " | " + ex.Message); } }
/* * 팩스 전송시 과금되는 포인트 단가를 확인합니다. * - https://docs.popbill.com/fax/dotnetcore/api#GetUnitCost */ public IActionResult GetUnitCost() { try { // 수신번호 유형, 일반 / 지능 중 택 1 string receiveNumType = "일반"; var result = _faxService.GetUnitCost(corpNum, userID, receiveNumType); return(View("Result", result)); } catch (PopbillException pe) { return(View("Exception", pe)); } }