Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }