Example #1
0
        protected override HttpRequestItem BuildRequest()
        {
            var req = HttpRequestItem.CreateJsonRequest(ApiUrls.TulingRobot);
            var obj = new
            {
                key    = _key,
                info   = _input,
                userid = Session.User.UserName,
            };

            req.StringData = obj.ToJson();
            return(req);
        }
        public override HttpRequestItem BuildRequest()
        {
            var req = HttpRequestItem.CreateJsonRequest(ApiUrls.TulingRobot);
            var obj = new
            {
                key    = _key,
                info   = _input,
                userid = Account.User.UserName,
            };

            req.RawData = obj.ToJson();
            return(req);
        }