private void InitWeiBeeAdd(IWeiBee wb, string txt) { Token = wb.GetOAuth().Token; TokenSecret = wb.GetOAuth().TokenSecret; WbType = wb.UserType; MessageText = txt; ScheduledTime = DateTime.UtcNow; }
void OpenAuthPage() { IWeiBee weibee = WeiBeeFactory.CreateWeiBeeByType(WeiBeeType.QQ); weibee.GetOAuth().SetCallbackUrl(callbackurl); string authenticationUrl = weibee.GetOAuth().AuthorizationLinkGet(); Session[TokenSessionName] = weibee.GetOAuth().Token; Session[TokenSecretSessionName] = weibee.GetOAuth().TokenSecret; Session["weibeetype"] = weibee.UserType.ToString(); Response.Redirect(authenticationUrl); }