This is an excellent video and, although you regularly apologize for it, I genuinely appreciate how you explained the simplest steps. I'm very new to c# (and programming in general) and it was a huge help to me.
Just stumbled upon this video, as I decided to change stacks. Moving my project from Java to C# and this is exactly what I was wondering haha. Thanks so much man
Came across this video via UA-cam recommendation. Glad UA-cam recommended this. Absolutely great style of teaching - clean, methodical, to the point and most of all organized! I picked up a lot of good practices from your video. Thank you so much.
Great lesson and demo. Also, it is instructive for the viewer to see the thought processes that the developer works through in order to create the solution. Thanks !
Thankyou. I've just written my first RESTful API interface using your tutorial and actually understood most of it, enough to adapt it to an actual work requirement.
Thank you for the video. I appreciate your explanations. Its easy to simply copy code, the better course is to understand what you are coding. You do an excellent job of explaining.
Fantastic, clear tutorial! I've been trying to shoehorn Azure Blob connectivity into Unity without resorting to abandoned/obsolete third party pacakges which has led me to trying to research REST API's for Azure. Your tutorial is STILL an excellent resource for understanding the simple coding model for CRUD operations. Thanks, bud XD
Great Video and was very helpful in creating a REST client. It would be more helpful if you can make an other video on how to access a REST service that has user name and password along with using "POST" to send the values to the service. Thanks for your help :)
Hi, really nice tutorial. I would also be interested in the POST request to go with this video. Any idea if you may do this one? Thanks again...we owe you a beer for that!
Great video. I needed to learn REST for work and this was great. I love your coding style, its almost identical to my style. This video was very easy to follow and really helped fill in the gaps. Thank you so much for sharing!
If you are getting the debugOutput does not exist error message --- it took me a very long time to figure it out. He did not delete the custom function that you created at the beginning of the video, he just hid it in another region. It's below the cmdGO_Clck Handler region. Create a new region below that and put the code there that he uses at the beginning of the video.
Great video thanks you, I like the clear unambiguous code style at least in a tutorial; after I get this working I will go through your next video on authentication
Hey thanks for the pick up. I try to keep things consistent all the way through, but the videos can get produced over a period of time so inconsistencies creep in. Great pick up though and should hopefully help others - so thanks!
Is there a slight error in your video? In the video you referred to the top textbox at 5:10 as txtRestURI - but then in your code you refer it as txtRequestURI at 21:31. It threw me, but I changed it to what I called it (txtRestURI) and it worked fine. Thanks for the video! 👍
Hey Shivam, glad you found the tutorial useful. Not actually thought about doing any webinars, but now you mention it - it could be a good idea! I'll let my subscribers know if set some up. Thanks again for the feedback.
I know multiple people suggested about the POST but I am new to this kind of coding. Could you do a video on POSTing? Thank you this helped me very much and I appreciate this soo much!
Thanks Jeroen. I think my video on Authenticating to an API covers this, (to be honest I can't remember the content in detail!). ua-cam.com/video/XX5pn4pJ4b0/v-deo.html
Very nice video sir, impressive! As a beginner, I would like to know where I can put the server password, username in the code and some parameters etc. in order to get response from a secured API
Hey Nicholas what type of Authentication is your API using? You should be able to use the NetworCredential Class in most cases, but some APIs (for example the one I have to use!), can be a picky... Or you can attach an authentication header directly (if using basic authentication). NetworkCredential should work in most cases: msdn.microsoft.com/en-us/library/71b57yke%28v=vs.100%29.aspx
Hey @binarythistle! Thank you for your help. It all worked out now! Had to do a form login with HttpWebRequest and forgot to set the content type. was able to store keep the session logged in with cookie container. thanks for the help though :)
Thanks for good video with clear explanation consuming REST API, but I have to pass the client id and client secret in headers while calling get and post methods for API authentication , Could you please help on this.Regards,Raghu
You basically saved my life. Very good material. Just one question.. Say my URI has Basic Auth, user and pwd. Is it possible using your code? Should I use Network Credentials? THANKS!
Hey José, I've got a video on Basic Authentication and the REST client - so take a look at that! If possible I'd probably use Network Credentials, but not all Basic Auth APIs support them so you'd have to construct your own header. Take a look at the video! Cheers Les
Thanks, watching it... Been trying your tutorials, but I am predefining the URL, not typing it (since we are always using the same), but I get your error, the Error (The remote server returned an error: (404) Not Found.). I am guessing it is due to how I am handling the http? Mind talking a quick look? it is a very basic example and I am using your URL to test.... Thank you very very very much!
Why use "using" statement on line 36 if you write response.StatusCode on line 38 instead of just StatusCode? Isn't that the whole point of using "using"?
Hello, the video is very good. but I have a question and I hope you can help me. how can I take an item from my database and show that item in a text box. remembering that I'm consumed with a web API I don't want the entire collection, I just want a single item. I'll give you an example: product code1 .. product name Orange I just need Json to return me to an orange text box could you explain to me how can i do this
Hello sir, Before we begin, thank you for the job you do of providing people with education for free. However my question how to recover an object from its path, knowing that in your json object we had arrays, string, int, structure (a real tree structure). I specify that the GetItemFromPath method will have Path parameter which can be an array. Thank you sir.
Hey Samuel, I was going to do a bit of a follow up on consuming and working with JSON, and possibly a more detailed tutorial on the REST interface provided by Atlassian's JIRA (basically why I did the original). These are still in the pipeline though. So as for recommending any others, I'm sure there's loads out there, I just haven't used any to recommend!
Buttons should be btnSomething IMHO. Of course we're all told now that using Hungarian notation is evil and redundant. I don't use it in code but I do still use it in the UI. Luv and Peace.
Hey Andreas, finishing up a video on Authentication, (hopefully up next week!), then I'll be doing one on consuming JSON. Any other suggestions on what you'd like to see just post them up here!
well, after you finish with this introduction, it would be nice to make a program that uses api, for example using a google api to find all the roads that you can use to reach a destination. I searched for guides on how to do this using c# and the only thing that came up was your video. Hope you get the support you need to continue , have you considered making a patreon page?
Hey Andreas, good suggestion, I think using a "real world" example brings the whole thing to life, I'll put it on my backlog of ideas - they're always welcome. Not looked in to a patreon page, had a quick look - seems interesting! Thanks for the heads up.
This is an excellent video and, although you regularly apologize for it, I genuinely appreciate how you explained the simplest steps. I'm very new to c# (and programming in general) and it was a huge help to me.
Thanks for feedback, I'm really glad you you like the style of the tutorial and that you found it useful!
Thanks for not pasting the code. that is exactly the point behind a video. Great tutorial.
This is honestly one of the best tutorials I've seen. I love how you make no assumptions and simply tell the viewer everything you're doing.
The word you're look for at 15:25 is "Deprecated". This video is awesome. Thanks.
Thanks mate - yeah that was the word I was looking for!
Just stumbled upon this video, as I decided to change stacks. Moving my project from Java to C# and this is exactly what I was wondering haha. Thanks so much man
why do you want to move from Java to C#, C# sucks, I'm moving to PHP finally something good and easy.
Came across this video via UA-cam recommendation. Glad UA-cam recommended this. Absolutely great style of teaching - clean, methodical, to the point and most of all organized! I picked up a lot of good practices from your video. Thank you so much.
Great lesson and demo. Also, it is instructive for the viewer to see the thought processes that the developer works through in order to create the solution. Thanks !
Much appreciated!
Thankyou. I've just written my first RESTful API interface using your tutorial and actually understood most of it, enough to adapt it to an actual work requirement.
Thank you for the video. I appreciate your explanations. Its easy to simply copy code, the better course is to understand what you are coding. You do an excellent job of explaining.
Thanks Dean!
Fantastic, clear tutorial! I've been trying to shoehorn Azure Blob connectivity into Unity without resorting to abandoned/obsolete third party pacakges which has led me to trying to research REST API's for Azure. Your tutorial is STILL an excellent resource for understanding the simple coding model for CRUD operations. Thanks, bud XD
i know I am kinda off topic but does anybody know of a good site to watch new series online ?
i think "deprecated" is the term you were looking for. good tut. thnx
Yeah you're right!
Great Video and was very helpful in creating a REST client. It would be more helpful if you can make an other video on how to access a REST service that has user name and password along with using "POST" to send the values to the service. Thanks for your help :)
Hey mate, yeah as you can see from the discussion thread a few people are asking for this- think I have my next video sorted! Thanks for the feedback!
Hi, really nice tutorial. I would also be interested in the POST request to go with this video. Any idea if you may do this one? Thanks again...we owe you a beer for that!
Great video, helped me to solve a problem with connecting to an API, I added API key and secret key.
This is awesome! I can code but I'm not a programmer and this really helped break it down. Thanks for posting!
Great video! I took this as my opportunity to download and install Visual Studio and write my first program using it. Thanks for the jump start!
Excellent thanks - content, presentation, video res and sound.
Thanks Ian!
Great video. I needed to learn REST for work and this was great. I love your coding style, its almost identical to my style. This video was very easy to follow and really helped fill in the gaps. Thank you so much for sharing!
Hey Micah - great feedback thanks! Glad to hear video came in useful for you. Cheers.
If you are getting the debugOutput does not exist error message --- it took me a very long time to figure it out. He did not delete the custom function that you created at the beginning of the video, he just hid it in another region. It's below the cmdGO_Clck Handler region. Create a new region below that and put the code there that he uses at the beginning of the video.
FANTASTIC VIDEO from a FANTASTIC TUTOR !!! Thank you very much !!! Costas from Greece.
Great video thanks you, I like the clear unambiguous code style at least in a tutorial; after I get this working I will go through your next video on authentication
Thanks for the feedback David, glad you found it useful.
This was an absolutely great tutorial. Thank you for doing this!
Thanks Alex glad you found it useful - always really great to get feedback - so thanks again!
Great video and simple enough to understand, thank you Les
@ 21:31 code refers to txtRequestURI --> textbox was was named txtRestURI earlier in the video @5:10
Hey thanks for the pick up. I try to keep things consistent all the way through, but the videos can get produced over a period of time so inconsistencies creep in. Great pick up though and should hopefully help others - so thanks!
You just saved my life!!
Nice video, really helped.
Cheers from Brazil.
Thank you. Most of your videos are very helpful. Thank you for your effort.
This is a very good and easy to understand tutorial! Thank you for making this!
Cool thanks for the feedback!
Thank you I was having trouble sleeping. But not anymore 👍
Never thought about these as a cure for insomnia... May be another potential revenue stream - thanks Tom!
Thanks for Making It easier for all of us !
Brilliant tutorial - thanks Les!
Thanks Edward!
Great Tutorial, thank you very much!
I really appreciate how you go into detail about every step.
Looking forward to your next video :)
Cool glad you liked it!
Great video, really found it helpful as I'm new to C#
Great to hear that the video was useful Jim! Thanks for the feedback.
Great video! Thanks for demystifying this task.
Thank you, Good that I started with your video.
Cool glad it helped!
Is there a slight error in your video? In the video you referred to the top textbox at 5:10 as txtRestURI - but then in your code you refer it as txtRequestURI at 21:31. It threw me, but I changed it to what I called it (txtRestURI) and it worked fine. Thanks for the video! 👍
Thanks alot for this. Super easy to understand. Would be awesome to attend your webinars if you offer any. Please let me know.
Hey Shivam, glad you found the tutorial useful. Not actually thought about doing any webinars, but now you mention it - it could be a good idea! I'll let my subscribers know if set some up. Thanks again for the feedback.
Hey sir! Thanks, for everything. X
Very good
Thank you very much sir. This is exactly what I needed to help me get started.
Cool glad it helped Martin.
THANK YOU!!! THIS IS AMAZING!!!
- A fellow Scot
Thanks mate! I learned something today, very good video.
this guy's commentator abilities is so funny that Im actually laughed all tutorial, great explanation tho
Thanks Man You solved My Problem
I know multiple people suggested about the POST but I am new to this kind of coding. Could you do a video on POSTing? Thank you this helped me very much and I appreciate this soo much!
Hey Bradley, yes I'll put a POST example on my backlog of videos to produce next. Thanks for the feedback.
Good video sir, curious how a POST with Auth header will work
Thanks Jeroen. I think my video on Authenticating to an API covers this, (to be honest I can't remember the content in detail!). ua-cam.com/video/XX5pn4pJ4b0/v-deo.html
Nice and easy to understand. Thank you.
Awesome we aim to please!
best vid ever 12/10
more like this please thanks
Excellent video this. Thank you
Very nice video sir, impressive!
As a beginner, I would like to know where I can put the server password, username in the code and some parameters etc. in order to get response from a secured API
Hey thanks for the feedback, and great suggestion on utilising passwords etc. I'll put it on my list of follow up videos!
I cannot get the authentication to work :( really urgent though... any tips?
Hey Nicholas what type of Authentication is your API using? You should be able to use the NetworCredential Class in most cases, but some APIs (for example the one I have to use!), can be a picky... Or you can attach an authentication header directly (if using basic authentication). NetworkCredential should work in most cases: msdn.microsoft.com/en-us/library/71b57yke%28v=vs.100%29.aspx
Hey @binarythistle! Thank you for your help. It all worked out now! Had to do a form login with HttpWebRequest and forgot to set the content type. was able to store keep the session logged in with cookie container. thanks for the help though :)
Thanks for the video, it would be more helpful if you could pass authentication credentials as well. It will be helpful more in real world scenarios
It all finally made sense! Thanks!!!
Thank you!! Your videos have successfully helped me build my first REST API application, do you have any content on webhooks? Thank you
Excellent explanation. Thank you.
Thanks! Appreciate the feedback.
Great tutorial. Thanks!!!!!
Thanks Ricardo! Hope it was useful.
> youtube search for api tutorial c#
> first vid contains "C#", "Step by step" and is 24 minutes long
> clicks
> scottisch accent
> fuck yes
:)
Thank you! great tutorial very helpfull!
greetings from Mexico!
Hey Alex glad it helped!
Congratulations, great video. Thanks!
Cool thanks Cleber!
Thank you so much ,,it was really helpful to understand ,,thank you once again
Thanks Dinesh - glad it helped!
Great video. Thanks.
Cool glad you liked it! Cheers, Les
Excellent tutorial!
Thank you, amazing explanation!
I really enjoyed this, thanks for the assistance! :)
Cool thanks mate!
Awesome tutor!. Thanks a lot. It helped me a lot.
Cool man glad it helped!
Gracias mi estimado me funcionó bastante . Buena explicación
Gracias!
Thanks for good video with clear explanation consuming REST API, but I have to pass the client id and client secret in headers while calling get and post methods for API authentication , Could you please help on this.Regards,Raghu
Great video, I am guessing I can use RestSharp for XML instead of Json? Then use XMLConvert instead of JsonConvert? Thanks,
Great tutorial! Works perfect for me :)
Cool glad you found it useful Mihail!
nice but you should close the toolbox and solution explorer when displaying the code window so you don't have to keep scrolling back and fourth.
Great tutorial man. thanks a for your help, keep it up.
Cheers mate - thanks for the feedback!
Hey mate can you please add more videos on POST method :-) it will be very helpful.
Hey Serge - good suggestion hadn't thought about the differences with POST. I'll put it on the backlog of suggestions.
very good my friend
Excelente, me funciono tal cual como el video, I'm happy with your solution.
excellent tut keep it up bro
Cheers mate!
You basically saved my life. Very good material. Just one question.. Say my URI has Basic Auth, user and pwd. Is it possible using your code? Should I use Network Credentials? THANKS!
Hey José, I've got a video on Basic Authentication and the REST client - so take a look at that! If possible I'd probably use Network Credentials, but not all Basic Auth APIs support them so you'd have to construct your own header. Take a look at the video! Cheers Les
Thanks, watching it... Been trying your tutorials, but I am predefining the URL, not typing it (since we are always using the same), but I get your error, the Error (The remote server returned an error: (404) Not Found.). I am guessing it is due to how I am handling the http? Mind talking a quick look? it is a very basic example and I am using your URL to test.... Thank you very very very much!
How to launch and install games using c# without opening the microsoft store? Any videos or tutorials that you can recommend?
Why use "using" statement on line 36 if you write response.StatusCode on line 38 instead of just StatusCode? Isn't that the whole point of using "using"?
Great tutorial! Thanks
Thanks for the feedback Marian!
Perfect video, thanks man
Hey Yaroslav! Thanks for the awesome feedback - hope the video was useful. Cheers, Les
Hello, the video is very good. but I have a question and I hope you can help me.
how can I take an item from my database and show that item in a text box. remembering that I'm consumed with a web API
I don't want the entire collection, I just want a single item.
I'll give you an example:
product code1 .. product name Orange
I just need Json to return me to an orange text box
could you explain to me how can i do this
Hello sir,
Before we begin, thank you for the job you do of providing people with education for free.
However my question how to recover an object from its path, knowing that in your json object we had arrays, string, int, structure (a real tree structure).
I specify that the GetItemFromPath method will have Path parameter which can be an array.
Thank you sir.
Cracking Video, thanks very much!
Thanks Samuel - really appreciate the feedback!
Do you provide any other tutorials relating to REST or can advertise?
Hey Samuel, I was going to do a bit of a follow up on consuming and working with JSON, and possibly a more detailed tutorial on the REST interface provided by Atlassian's JIRA (basically why I did the original). These are still in the pipeline though. So as for recommending any others, I'm sure there's loads out there, I just haven't used any to recommend!
Buttons should be btnSomething IMHO. Of course we're all told now that using Hungarian notation is evil and redundant.
I don't use it in code but I do still use it in the UI.
Luv and Peace.
Also a Scot btw Are you in any sort of user group?
Thanks for the superb video.
Thanks Anand - hope you fond it useful! Cheers, Les
Thanks, for tutorial.
Your welcome!
great job
What a great tutorial and sweet accent! Where are you from? It sounds like an Essex accent :P
Hey Antonio, originally from Scotland! I lived in Kent for many years, (which neighbours Essex), so I may have picked up a few accent traits!
Hi, it looks like that API url doesn’t work anymore?
Thanks this really helped, is there a way to then only show certain parts of the JSON data and also to format them to look nicer
Hey Tim, my next video is about parsing and using JSON, hopefully be up in a week or two, (my day job's busy at the moment!).
Thank you very much !
Great! If you could do a tutorial on using the API of firebase database in UNITY3d?
Can you upload a PUT method? Thanks.
Awesome. Thank you.
No problem! Hope it helped you out!
Awesome Video, i have a question tho.
How do i implement a Body for POST/PUT?
Hi there, my video on POSTing data should do the trick! ua-cam.com/video/_6IdfPMxYFI/v-deo.html
THANK YOU VERY VERY MUCH!!!!
Hey Willian - glad you found it useful!
great tutorial thank you
Great vid, thank you.
Thanks! Hope it was useful.
good tutorial. thanks.
excelent video, you has the first resource of internet how can help me
Cool glad to hear it David.
waiting for new videos about this topic
Hey Andreas, finishing up a video on Authentication, (hopefully up next week!), then I'll be doing one on consuming JSON. Any other suggestions on what you'd like to see just post them up here!
well, after you finish with this introduction, it would be nice to make a program that uses api, for example using a google api to find all the roads that you can use to reach a destination. I searched for guides on how to do this using c# and the only thing that came up was your video. Hope you get the support you need to continue , have you considered making a patreon page?
Hey Andreas, good suggestion, I think using a "real world" example brings the whole thing to life, I'll put it on my backlog of ideas - they're always welcome. Not looked in to a patreon page, had a quick look - seems interesting! Thanks for the heads up.
hey sir , how we can use httpreponse ? can we get "id" or other values from Httpresponse ...?
Do you have anything on oData compliant ones? I just did one last month to integrate with D365 and it was very tricky.
GOD BLESS YOU