示例#1
0
        public AmtServiceResponse GetBalance(AmtServiceRequest request)
        {
            // Check input
            request.Operation = "GetBalance";

            // Check authorization
            if (!IsAuthorized(request.ApiKey)) return NotAuthorized(request);

            AmtService myService = new AmtService(request.Sandbox);
            return new AmtServiceResponse { Operation = "GetAccountBalance", Result = myService.GetAccountBalance() };
        }
示例#2
0
 protected void BtnGetBalance_Click(object sender, EventArgs e)
 {
     AmtService myService = new AmtService(true);
     LitGetBalance.Text = myService.GetAccountBalance();
 }