Consume RESTful API in C#

If you are involved in much web development, you will eventually need to work with web services or web APIs. This is a great article that summarizes a few of the different ways you can write C# code to work with these services. It covers the following methods to consume a RESTful API in C#:

  • HttpWebRequest/Response class
  • WebClient class
  • HttpClient class
  • RestSharp NuGet package
  • ServiceStack Http Utils

Each of them have their own pros and cons, and article gives a good overview of them. Find out more at RESTful API in C#.