Les Partages de Memiks
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
ASP.NET Core 2.0: Implementing a 3rd Party Web API - DEV Community đŸ‘©â€đŸ’»đŸ‘šâ€đŸ’» https://dev.to/donbavand/aspnet-core-20-implementing-a-3rd-party-web-api-7p8
Mon Oct 22 18:10:18 2018 archive.org
QRCode
thumbnail

public class GetRandomGif : IGetRandomGif
{
public async Task ReturnRandomGifBasedOnTag(string searchCritera)
{
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(json);
}
}
}

api net core tutoriel
4727 links, including 1641 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn