public class GetRandomGif : IGetRandomGif
{
public async Task
{
const string giphyKey = "";
using (var client = new HttpClient())
{
var url = new Uri($"http://api.giphy.com/v1/gifs/search?api_key={giphyKey}&q={searchCritera}&limit=1");
var response = await client.GetAsync(url);
string json;
using (var content = response.Content)
{
json = await content.ReadAsStringAsync();
}
return JsonConvert.DeserializeObject
}
}
}