Example #1
0
        public override HttpRequestItem BuildRequest()
        {
            var req = HttpRequestItem.CreateGetRequest(ApiUrls.GetSelfInfo);

            req.AddQueryValue("t", Timestamp);
            req.Referrer = ApiUrls.Referrer;
            return(req);
        }
        protected override HttpRequestItem BuildRequest()
        {
            var req = HttpRequestItem.CreateGetRequest(ApiUrls.GetGroupInfo);

            req.AddQueryValue("gcode", _group.Code);
            req.AddQueryValue("vfwebqq", Session.Vfwebqq);
            req.AddQueryValue("t", Timestamp);
            req.Referrer = ApiUrls.ReferrerS;
            return(req);
        }
Example #3
0
        public override HttpRequestItem BuildRequest()
        {
            var req = HttpRequestItem.CreateGetRequest(ApiUrls.GetDiscuzList);

            req.AddQueryValue("clientid", Session.ClientId);
            req.AddQueryValue("psessionid", Session.SessionId);
            req.AddQueryValue("vfwebqq", Session.Vfwebqq);
            req.AddQueryValue("t", Timestamp);
            req.Referrer = ApiUrls.ReferrerS;
            return(req);
        }
Example #4
0
        protected override HttpRequestItem BuildRequest()
        {
            var req = HttpRequestItem.CreateGetRequest(ApiUrls.GetVfwebqq);

            req.AddQueryValue("ptwebqq", Session.Ptwebqq);
            req.AddQueryValue("clientid", Session.ClientId);
            req.AddQueryValue("psessionid", "");
            req.AddQueryValue("t", Timestamp);
            req.Referrer = ApiUrls.ReferrerS;
            return(req);
        }
Example #5
0
        public override HttpRequestItem BuildRequest()
        {
            var actionType = this.GetType();
            var url        = UrlApiDic.GetOrAdd(actionType, key =>
            {
                var actionName = actionType.Name.Replace("Action", "");
                return(typeof(ApiUrls).GetField(actionName).GetValue(null).ToString());
            });
            var req = HttpRequestItem.CreateGetRequest(url);

            ModifyRequest(req);
            return(req);
        }
Example #6
0
 protected override HttpRequestItem BuildRequest()
 {
     return(HttpRequestItem.CreateGetRequest(Session.CheckSigUrl));
 }