Пример #1
0
 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;
 }
Пример #2
0
 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);
 }