How To Call An API in C# - Examples, Best Practices, Memory Management, and Pitfalls

It seems like everything has an API these days but have you ever wondered how to make use of an API in your application? It turns out that it isn’t really that hard at all. In this video, I am going to show you how to easily load the data from two different APIs into an application. Along the way, I will show you how to avoid some memory issues and other best practices around talking to APIs Full courses: Source Code: Patreon: Newsletter signup: 0:00 - Intro 1:00 - Demo application walk-through 4:09 - Setting up API calling: and NuGet references 6:02 - Setting up API calling: HttpClient 13:48 - Setting up API calling: API calls 19:14 - Setting up API calling: Reading and working with json data 28:18 - Loading image in WPF (form a website) 35:29 - Adding events in WPF application: wiring u
Back to Top