How to Call External API in C#

  Рет қаралды 182,533

Techie Ocean

Techie Ocean

Күн бұрын

In this tutorial, we will see how to call a external API from C# code.
We will take an free sample API.
We will see :
1. How to make a GET request from C#
2. How to make a POST request from C#
3. How to pass credentials to API from inside the C# code.
#C# API

Пікірлер: 79
@nagadinesh7994
@nagadinesh7994 5 жыл бұрын
I browsed many sites on how to make a call to a API, but just couldn't get it right. This video worked just fine for me. Thank you so much!
@naveenpatils2277
@naveenpatils2277 2 жыл бұрын
Can you please tell me which is the first page that he is writing the request code. Is it a new controller or what?
@VijayKumar-yi7nt
@VijayKumar-yi7nt 3 жыл бұрын
Very nice demonstration with good handling of variable & resources.
@deepamarwah7048
@deepamarwah7048 3 жыл бұрын
Thanks, You really made it very simple and easy to understand. Much thanks!
@MessingWithCode
@MessingWithCode 2 жыл бұрын
hey i love you and i do not understand how you have such an small amount of likes you deserve a tone more thanks a lot and greattings from Dominican Republic
@papashoot8637
@papashoot8637 3 жыл бұрын
give me clear perspective about get and post in API, thank you sir!!
@davidpoole3570
@davidpoole3570 4 жыл бұрын
Outstanding! I looked all over for just this kind of tutorial. Thanks a ton!
@ajayec003
@ajayec003 Жыл бұрын
It's a wonderful video for basic knowledge of json api call and it will work.
@luciadamaceno6262
@luciadamaceno6262 4 жыл бұрын
Easier than it is impossible .. Great Video
@arielcuesta5520
@arielcuesta5520 4 жыл бұрын
Worked like a charm!!! Thanks so much!!
@maximillianshaughnessy2321
@maximillianshaughnessy2321 3 жыл бұрын
Perfectly explained my man
@btoz6237
@btoz6237 4 жыл бұрын
Very nice and easy video my friend!
@MerryEveryday
@MerryEveryday 3 жыл бұрын
This is great. Although, I have a question. Can we pass parameters as argument while getting data from an API call?
@truptikhade6967
@truptikhade6967 4 жыл бұрын
Great explanation Tq sir very helpful....
@justbean7451
@justbean7451 2 жыл бұрын
Thank you for the video! Very easy to follow and my code worked!
@mohitdiwakar9558
@mohitdiwakar9558 3 жыл бұрын
Perfectly explained
@venubvijayanna807
@venubvijayanna807 5 жыл бұрын
Excellent Demonstration thank you this helped me lot
@singhswat
@singhswat 3 жыл бұрын
Good one... To the point!!!
@RakeshLevine
@RakeshLevine 5 жыл бұрын
Awesome explanation bro it's nice
@derrickk773
@derrickk773 Жыл бұрын
Thanks for your help!
@sqbkhan
@sqbkhan 3 жыл бұрын
Thanks for sharing.
@navalbhatt540
@navalbhatt540 2 жыл бұрын
Great explanation
@ahmedkoubesy7458
@ahmedkoubesy7458 5 жыл бұрын
This video is very useful thank you
@TechieOcean
@TechieOcean 5 жыл бұрын
Thanks
@manin84
@manin84 3 жыл бұрын
well explained !
@lorenzocruz1313
@lorenzocruz1313 4 жыл бұрын
Excellent video. Question, how can I make the same using XML instead of JSON?
@sameerjain9202
@sameerjain9202 2 жыл бұрын
Which visual studio template should i use for this?
@rukshanhassim5444
@rukshanhassim5444 5 жыл бұрын
This helped a lot thanks!
@tanzeelabbasi118
@tanzeelabbasi118 3 жыл бұрын
hello dude, there's occur a issue that is " Cannot send a content-body with this verb-type. " after post method.. what should be do .?
@stories_by_btk
@stories_by_btk 2 жыл бұрын
Bro… i have 2 columns in sql table. I need to collect the data in those 2 columns using Azure API call in c#. Can you tell me how can i do it ?
@ronbarybaryosef2412
@ronbarybaryosef2412 5 жыл бұрын
Great help me alot
@ArunYadav-gq6wr
@ArunYadav-gq6wr 4 жыл бұрын
This helped me alot but my requirements is to lanch a chrome browser and call the api and a webpage will open where need to enter data then after that it will send the response back. How can I achieve this? Thanks in advance.
@Abedin8
@Abedin8 5 жыл бұрын
How to do the same to access an API that has a token based Authentication (vcenter)? Would be a great help. Thanks
@v474mon
@v474mon 4 жыл бұрын
God bless You!
@pravinbhojane89
@pravinbhojane89 4 жыл бұрын
Hello sir, can you share a video how to send a data to same API from database and update response from API against same record which we have passed to client API.
@insiyahkanchwala2861
@insiyahkanchwala2861 3 жыл бұрын
Hello i am getting an error when i tried this code "The remote server returned an error: (400) Bad Request." what do i do?
@swastikamishravlogs
@swastikamishravlogs 3 жыл бұрын
What if the Api returns HTML and we want that HTML as json payload, I am getting error from hitting the website api
@olaniyijesutofunmi423
@olaniyijesutofunmi423 4 жыл бұрын
Hello, Thank you so much for the tutorial. I am unable to view my results as you have done. My code is exactly the same as yours. I am using Visual Studio version 16.5.0
@shohailaamil1238
@shohailaamil1238 4 жыл бұрын
Thanks a lot
@sandeep-4433
@sandeep-4433 4 жыл бұрын
Hello sir, Could you please tell me , how to get token back in C# application by passing credentials to api. and again getting result from API
@ashishshukla6932
@ashishshukla6932 3 жыл бұрын
can we call salesforce API this way...??? pls can someone tell
@tondar2127
@tondar2127 4 жыл бұрын
Thank you so much
@gauravdessai8783
@gauravdessai8783 4 жыл бұрын
with this post code does it post data to that free api ??
@Slaapkip
@Slaapkip 4 жыл бұрын
Thanks :)!
@matys3693
@matys3693 5 жыл бұрын
How to create default.aspx.cs file? I have VS 2017 adn can't see it, am I missing something?
@matys3693
@matys3693 5 жыл бұрын
Nvm I had different project without :Page
@victorvictoriano8873
@victorvictoriano8873 5 жыл бұрын
I make conector to akeneo pim, and this video help me thanks
@nagadinesh7994
@nagadinesh7994 5 жыл бұрын
Also can you a make a video on how to make use of HTTPClient class to make API calls or get me a good pointer for the same. Thanks in Advance!
@NazmulHasan-tm5ly
@NazmulHasan-tm5ly 4 жыл бұрын
Hi Naga, Did you figure out how to call API using HTTPClient?
@Drengen10
@Drengen10 2 жыл бұрын
This sort of video doesnt work in 480p
@happylittlemonk
@happylittlemonk 4 жыл бұрын
Thanks But please do not keep zooming it.We can see the text. It is very distracting and annoying.
@mikeseisbye266
@mikeseisbye266 5 жыл бұрын
not for rookies.. taking to many leaps, which assumes you know a lot of about the steps taken.. missing a lot of detailed explanations if you want to use as a tutorial
@munnaalexander4889
@munnaalexander4889 3 жыл бұрын
Hi, Thanks a lot for the tutorial. I'm getting the errors below jdoodle.cs(36,0): error CS1525: Unexpected symbol `string' jdoodle.cs(43,28): error CS1530: Keyword `new' is not allowed on namespace elements jdoodle.cs(43,31): error CS1525: Unexpected symbol `StreamWriter' Can anyone help?
@rafaelfalagan3814
@rafaelfalagan3814 Жыл бұрын
Would this code support 'RESTFUL' API Calls ?
@vishaltrivedi4537
@vishaltrivedi4537 2 жыл бұрын
Superlike to this video thanks a lot
@jordanhooftman3358
@jordanhooftman3358 2 жыл бұрын
Thanks alot for your help
@ndudimokezie5421
@ndudimokezie5421 2 жыл бұрын
This was very helpful. Thanks
@audiobiblescriptures7317
@audiobiblescriptures7317 Жыл бұрын
hi i am a newbie, to start which template shall i create?
@joel9002
@joel9002 2 жыл бұрын
Thank you so much!!
@Lorshi
@Lorshi 2 жыл бұрын
Excelent video, thanks
@shaikhshaji
@shaikhshaji 4 жыл бұрын
Thanks.. its really helpful .
@jvigel2101
@jvigel2101 3 жыл бұрын
just what I needed!
@javlonismatov8197
@javlonismatov8197 3 жыл бұрын
This is beautiful, than you sir !
@sivalingamgobinath1469
@sivalingamgobinath1469 4 жыл бұрын
Great one
@TheAbushamel
@TheAbushamel Жыл бұрын
Thank your very much sir Simple and very clear explain
@jagdishjoshi3875
@jagdishjoshi3875 5 жыл бұрын
Sir, I followed the same process which you show on the videos .. it is working fine also at my end. but i have to debug my Service Code . but debugger does 't move on the service method . please make me explain how can i do this. i am waiting of positive response your side.. if it will possible do get back answer of my this query . because i am facing this problem on my company project.
@darkangelhell6667
@darkangelhell6667 4 жыл бұрын
My like was number was 404. Sadly... was not found.
@eversmilemuthanuni8970
@eversmilemuthanuni8970 4 жыл бұрын
Can you make the one using copy leaks api Im having problems connecting to it
@mohammedakram1351
@mohammedakram1351 3 жыл бұрын
Sir I need help from you...
@caroav2671
@caroav2671 4 жыл бұрын
Very good tutorial unfortunately not working for me
@yogeshns
@yogeshns 2 жыл бұрын
superb explanation brother 👍
@anubhavsrivastava6624
@anubhavsrivastava6624 4 жыл бұрын
Hi Sir I am getting a blank page what to do??
@1gatti
@1gatti 3 жыл бұрын
q cara bom
@malinky515
@malinky515 5 жыл бұрын
Tutorial definitely not for people new to c# but it's worth watching as an introduction to API's
@lastone1222
@lastone1222 5 жыл бұрын
Ye but it is not hard to understand at all. I am learning c# maximally 2 months with 0 knowledge from other languages and when i learned basics of OOP it is not hard to understand. After 2 months i think i am still new but i dont know how is it in programming languages.
@nikhilsharma2982
@nikhilsharma2982 5 жыл бұрын
Thanks man for making this video, it got my long time cut to short.
@Ravi-ws3qb
@Ravi-ws3qb 5 жыл бұрын
Can we also call web services by this way
@TechieOcean
@TechieOcean 5 жыл бұрын
Hi Ravi, For .NET webservices, we have different approaches. we can use the proxy class of the webservice in our client project to call the web service methods using that proxy class. Second we add the web reference to the url of the web service and then call the web methods by making the instance of the web service classes.
Http Get And Post In C#
19:37
Nick Proud
Рет қаралды 96 М.
Worst flight ever
00:55
Adam W
Рет қаралды 25 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 102 МЛН
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН
Web API CRUD Operations Using Asp Net MVC and Entity Framework
45:55
How to Convert JSON string to C# Object
24:26
Techie Ocean
Рет қаралды 39 М.
Create Web Api and Consume it with mvc application
23:27
Programmers Nerds
Рет қаралды 32 М.
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,5 МЛН
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 196 М.
The Home Server I've Been Wanting
18:14
Hardware Haven
Рет қаралды 121 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 159 М.
REST API concepts and examples
8:53
WebConcepts
Рет қаралды 6 МЛН
POST Method in c# | Headers | Send Async | #7
19:13
Binary Automation - SDETs
Рет қаралды 7 М.