Esempio n. 1
0
        public APIResponse <T> Post <T, W>(string route, W Data)
        {
            var content = new StringContent(JsonConvert.SerializeObject(Data), Encoding.UTF8, "application/json");

            return(APIResponse <T> .HandleRequest(_client.PostAsync(route, content).Result));
        }
Esempio n. 2
0
 public APIResponse <T> Get <T>(string route)
 {
     return(APIResponse <T> .HandleRequest(_client.GetAsync(route).Result));
 }