Exemplo 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));
        }
Exemplo n.º 2
0
 public APIResponse <T> Get <T>(string route)
 {
     return(APIResponse <T> .HandleRequest(_client.GetAsync(route).Result));
 }