Пример #1
0
 private void ObtainToken_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(BearerToken.Text))
     {
         OAuth2Token token = _api.GetApplicationToken();
         BearerToken.Text = token.access_token;
         _api.BearerToken = token.access_token;
     }
 }