Exemplo n.º 1
0
 protected void Auth_Click(object sender, EventArgs e)
 {
     var c = new RentItService();
       try {
     var x = c.Authenticate("Lynette", "Awesome");
     AuthResponse.Text = x;
       }
       catch (Exception es) {
     AuthResponse.Text = es.ToString();
       }
 }
Exemplo n.º 2
0
 protected void GetAccounts_Click(object sender, EventArgs e)
 {
     var c = new RentItService();
       try {
     var x = c.GetAccounts("ACP", "detailed", "true");
     GetAccountsResponse.Text = x;
       }
       catch (Exception es) {
     GetAccountsResponse.Text = es.ToString();
       }
 }
Exemplo n.º 3
0
 protected void GetAccount_Click(object sender, EventArgs e)
 {
     var c = new RentItService();
       try {
     var x = c.GetAccount("Lynette");
     GetAccountResponse.Text = x;
       }
       catch (Exception es) {
     GetAccountResponse.Text = es.ToString();
       }
 }
Exemplo n.º 4
0
 protected void Update_Click(object sender, EventArgs e)
 {
     var c = new RentItService();
       try {
     var data = new Dictionary<string, object> { { "email", "*****@*****.**" } };
     var x = c.UpdateAccount("Lynette", data, Token.Text);
     UpdateResponse.Text = x;
       }
       catch (Exception es) {
     UpdateResponse.Text = es.ToString();
       }
 }
Exemplo n.º 5
0
 protected void Create_Click(object sender, EventArgs e)
 {
     var c = new RentItService();
       try {
     var data = new Dictionary<string, object> {
       {"password", "MichaelPass" },
       {"email", "*****@*****.**" },
       {"address", "Care" },
       {"postal", "12" },
       {"country", "Denmark" },
       {"accountType", "Customer" }
     };
     var x = c.CreateAccount("Michael", data);
     CreateResponse.Text = x;
       }
       catch (Exception es) {
     CreateResponse.Text = es.ToString();
       }
 }