private void btnBegin_Click(object sender, EventArgs e) { Sheeting sheets = new Sheeting(); authorizationResponse=sheets.GetOAuthUrl(txtClientID.Text, txtClientSecret.Text, ""); lnkAuthUrl.Text = authorizationResponse.authorizationUrl; lnkAuthUrl.Visible = true; lblAuthInstructions.Visible = true; txtAccessCode.Visible = true; btnContinue.Visible = true; }
private void btnContinue_Click(object sender, EventArgs e) { Sheeting sheets = new Sheeting(); parameters=sheets.GetToken(authorizationResponse.parameters, txtAccessCode.Text); MessageBox.Show("Access Token:" + parameters.AccessToken); }