Пример #1
0
        //此方法为testconsole内部验证程序,不是作为API方法调用
        public SessionInfo GetSessionFromToken(string auth_token)
        {
            this.session_info = util.GetXMLResponse<SessionInfo>("auth.getSession",
                    DiscuzParam.Create("auth_token", auth_token));

            this.auth_token = string.Empty;
            this.session_info.Secret = util.SharedSecret;
            return session_info;
        }
Пример #2
0
 // use this if you want to re-start an infinite session
 public DiscuzSession(string api_key, SessionInfo session_info, string forum_url)
     : this(api_key, session_info.Secret, forum_url)
 {
     this.session_info = session_info;
     this.forum_url = forum_url;
 }