示例#1
0
        public async Task <BaseResponse <Thing> > GetItem(GetRequest param)
        {
            var uri     = http.GetUri("item", param.AsDictionary());
            var request = new HttpRequestMessage(HttpMethod.Get, uri);
            var res     = await http.SendAsync(request);

            var a = res.Content.ReadAsStringAsync().Result;

            return(JsonConvert.DeserializeObject <BaseResponse <Thing> >(a));
        }