Exemplo n.º 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() };
        }
Exemplo n.º 2
0
 protected void BtnGetBalance_Click(object sender, EventArgs e)
 {
     AmtService myService = new AmtService(true);
     LitGetBalance.Text = myService.GetAccountBalance();
 }