private void goBtn_Click(object sender, EventArgs e) { RESTClient rClient = new RESTClient(); rClient.endPoint = urlTextBox.Text; Output("RESTClient Object created."); string strJSON = string.Empty; strJSON = rClient.makeRequest(); Output(strJSON); }
private void goBtn_Click(object sender, EventArgs e) { RESTClient rClient = new RESTClient(); rClient.endPoint = urlTextBox.Text; ///start autentication. Input the credentials. rClient.authTech = autheticationTechnique.RollYourOwn; rClient.authType = authenticationType.Basic; rClient.userName = usernameTextBox.Text; rClient.userPassword = passwordTextBox.Text; ///end authentication Output("RESTClient Object created."); string strJSON = string.Empty; strJSON = rClient.makeRequest(); Output(strJSON); }