How to Consume WEB API in C# | C# Tutorial for Beginners

preview_player
Показать описание
This video is about calling an existing WEB API from a C# application.
You will learn to use the HttpClient class to retrieve new releases from Spotify using their Web API.

🕑 Timestamp:
00:00 Introduction
00:49 Register the application with Spotify
01:21 Create an ASP.NET Core MVC app
02:12 Request access token from Spotify Account Service
08:24 Test requesting an access token
08:43 Request new release from Spotify Web API
12:54 Test requesting new releases
13:01 Display new releases in the Home View
14:10 Test the displaying of new releases in Home view
14:16 Outro

Make HTTP requests using IHttpClientFactory in ASP.NET Core :

Use IHttpClientFactory to implement resilient HTTP requests:

This video might interest you :

🌎 Where to find me:

#webapi #tutorial
Рекомендации по теме
Комментарии
Автор

great video. i like how you fast forward through the coding. It makes explaining things more fluid.

getreadytotube
Автор

After hours of searching finally find a channel that's not "Monkey see, Monkey do"
You explain is really well and not just doing it for the sake of it.

upcomng
Автор

What excites me the most is how you make complex topics sound easy to understand. I need to learn ur teaching patterns

davidemmanuel
Автор

Thanks so much for this! You saved me so much time today :)

cammydry
Автор

Amazing video gives Awesome knowledge 🙂🙂🙂

abhijeetkirdatt
Автор

This is amazing Pat, thanks a lot man.

innocentsizwe
Автор

Only thing is I wish you slow down a bit when you code.

upcomng
Автор

would you be able to redo this in a quick console program without DI? Just easier to learn something without all the overhead.

BobrLovr
Автор

Hey, thank you for the guide. At 9:20 how did you decide which fields go into the Release Model? Thanks!

Frzik
Автор

At 3:04, why did you take out the this. to insert the underscore? I believe the underscore is for global vars, but I'm just wondering what removing the this does in the constructor. Also, great video and thank you!

justinm
Автор

Hi, I'm getting this error: IServiceCollection does not contain a defintion for AddControllersWithViews
, and a few others relating to the namespace. What version of .NET MVC were you using?

Nicky
Автор

Hey Pat Where is that Documentation You’re talking about in the Video ?

cali
Автор

Thank you, I learnt a lot from your videos!! And Could you make a video of using RapidAPI like this??

프레데릭말
Автор

Is there a simple way to achieve this in c#? Just curious, I'm new. Looks like a lot!

JimmieZaccai
Автор

I do love how u make it with SOLID principles. Do you know how to place those Request Headers Configuration (Authorization, Content-Type, etc) in config file?

hafizhanalwafi
Автор

Hello Pat,

I hope all is well, and wonder if it is possible for you to change this tutorial to a new Blazor Server application?

Best,

dungle-whtd
Автор

This is very useful, could you make one o Forms consuming an Asp.net API for login, and CRUD operation targeting a SQL Server DB ? Please

Azm
Автор

Have you ever tried code for qtest manager login api call ?

rupalimehandiratta
Автор

Hey Pat i can‘t find the Startup.cs Can u help me ?

cali
Автор

Not gonna lie unless you already have experience in web apis, this will not help you, this youtuber goes 100 miles per hour even when explaining, i dont get whats the rush if youre suppose to be teaching, youre calling all sorts of methods without really explaining why.

Hollowendz