示例#1
0
 public void ResponseOAuth(Web.ResOAuth oauth)
 {
     if (oauth.isCallBack)
     {
         DataInstence.UpdateToken(oauth);
         System.Diagnostics.Process.Start($"https://api.twitter.com/oauth/authorize?oauth_token={oauth.tokenStr}");
     }
     else
     {
         DataInstence.UpdateToken(oauth);
         FileInstence.UpdateToken(DataInstence.userInfo);
         LoadMyInfo();
     }
 }
示例#2
0
 private void ResponseMyInfo(User user)
 {
     User.CopyUser(DataInstence.userInfo.user, user);
     FileInstence.UpdateToken(DataInstence.userInfo);
     StartApiCalls();
 }