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(); } }
private void ResponseMyInfo(User user) { User.CopyUser(DataInstence.userInfo.user, user); FileInstence.UpdateToken(DataInstence.userInfo); StartApiCalls(); }