Step by Step Tutorial - C# REST Client

Поділитися
Вставка

КОМЕНТАРІ • 231

  • @madmacjr8503
    @madmacjr8503 7 років тому +22

    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.

    • @binarythistle
      @binarythistle  7 років тому +1

      Thanks for feedback, I'm really glad you you like the style of the tutorial and that you found it useful!

  • @GeorgeLecakes
    @GeorgeLecakes 7 років тому +58

    Thanks for not pasting the code. that is exactly the point behind a video. Great tutorial.

  • @NatRussoAuthor
    @NatRussoAuthor 2 роки тому +1

    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.

  • @amarpanray
    @amarpanray 7 років тому +3

    The word you're look for at 15:25 is "Deprecated". This video is awesome. Thanks.

    • @binarythistle
      @binarythistle  7 років тому

      Thanks mate - yeah that was the word I was looking for!

  • @mickdostie
    @mickdostie 4 роки тому +1

    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

    • @nandohudman4999
      @nandohudman4999 4 роки тому

      why do you want to move from Java to C#, C# sucks, I'm moving to PHP finally something good and easy.

  • @binaryrain5297
    @binaryrain5297 4 роки тому

    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.

  • @JHatLpool
    @JHatLpool 4 роки тому

    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 !

  • @johnb4542
    @johnb4542 4 роки тому

    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.

  • @deanmiller3660
    @deanmiller3660 4 роки тому +2

    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.

  • @madmanmikeproductions5707
    @madmanmikeproductions5707 3 роки тому

    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

    • @matteobrayden3276
      @matteobrayden3276 3 роки тому

      i know I am kinda off topic but does anybody know of a good site to watch new series online ?

  • @DuanWalkerTheCPUTutor
    @DuanWalkerTheCPUTutor 5 років тому +1

    i think "deprecated" is the term you were looking for. good tut. thnx

  • @linkinshopper9279
    @linkinshopper9279 7 років тому +9

    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 :)

    • @binarythistle
      @binarythistle  7 років тому +4

      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!

    • @acmiller74
      @acmiller74 7 років тому +1

      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!

  • @nandohudman4999
    @nandohudman4999 4 роки тому +1

    Great video, helped me to solve a problem with connecting to an API, I added API key and secret key.

  • @bryanbradford9421
    @bryanbradford9421 6 років тому +1

    This is awesome! I can code but I'm not a programmer and this really helped break it down. Thanks for posting!

  • @vinjameson3944
    @vinjameson3944 5 років тому

    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!

  • @iancarr3923
    @iancarr3923 5 років тому +1

    Excellent thanks - content, presentation, video res and sound.

  • @mholmes3038
    @mholmes3038 6 років тому

    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!

    • @binarythistle
      @binarythistle  6 років тому

      Hey Micah - great feedback thanks! Glad to hear video came in useful for you. Cheers.

  • @jakers918
    @jakers918 4 роки тому

    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.

  • @constantinoscoveos9233
    @constantinoscoveos9233 2 роки тому

    FANTASTIC VIDEO from a FANTASTIC TUTOR !!! Thank you very much !!! Costas from Greece.

  • @davidherrington5052
    @davidherrington5052 4 роки тому +1

    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

    • @binarythistle
      @binarythistle  4 роки тому

      Thanks for the feedback David, glad you found it useful.

  • @RoundCorner93
    @RoundCorner93 7 років тому +1

    This was an absolutely great tutorial. Thank you for doing this!

    • @binarythistle
      @binarythistle  7 років тому

      Thanks Alex glad you found it useful - always really great to get feedback - so thanks again!

  • @AbedElkassih
    @AbedElkassih 3 роки тому

    Great video and simple enough to understand, thank you Les

  • @acmiller74
    @acmiller74 7 років тому +1

    @ 21:31 code refers to txtRequestURI --> textbox was was named txtRestURI earlier in the video @5:10

    • @binarythistle
      @binarythistle  7 років тому +1

      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!

    • @jakers918
      @jakers918 4 роки тому

      You just saved my life!!

  • @marcelobeani
    @marcelobeani Рік тому

    Nice video, really helped.
    Cheers from Brazil.

  • @hudongwang7550
    @hudongwang7550 3 роки тому

    Thank you. Most of your videos are very helpful. Thank you for your effort.

  • @cultsphere
    @cultsphere 7 років тому

    This is a very good and easy to understand tutorial! Thank you for making this!

  • @tomcooper8613
    @tomcooper8613 8 років тому

    Thank you I was having trouble sleeping. But not anymore 👍

    • @binarythistle
      @binarythistle  8 років тому +4

      Never thought about these as a cure for insomnia... May be another potential revenue stream - thanks Tom!

  • @apachebeamstepbystep9527
    @apachebeamstepbystep9527 6 років тому

    Thanks for Making It easier for all of us !

  • @_eddbot_
    @_eddbot_ 4 роки тому +1

    Brilliant tutorial - thanks Les!

  • @pascalgraf1413
    @pascalgraf1413 7 років тому

    Great Tutorial, thank you very much!
    I really appreciate how you go into detail about every step.
    Looking forward to your next video :)

  • @tristram56
    @tristram56 6 років тому

    Great video, really found it helpful as I'm new to C#

    • @binarythistle
      @binarythistle  6 років тому

      Great to hear that the video was useful Jim! Thanks for the feedback.

  • @timzales5344
    @timzales5344 3 роки тому

    Great video! Thanks for demystifying this task.

  • @ametpall
    @ametpall 5 років тому +1

    Thank you, Good that I started with your video.

  • @ajingar
    @ajingar 3 роки тому +1

    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! 👍

  • @shivambatra6379
    @shivambatra6379 7 років тому

    Thanks alot for this. Super easy to understand. Would be awesome to attend your webinars if you offer any. Please let me know.

    • @binarythistle
      @binarythistle  7 років тому +1

      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.

  • @spikyspam
    @spikyspam 11 місяців тому

    Hey sir! Thanks, for everything. X

  • @denilsonperspectiva
    @denilsonperspectiva 5 років тому +1

    Very good

  • @martingoodrich5839
    @martingoodrich5839 7 років тому

    Thank you very much sir. This is exactly what I needed to help me get started.

  • @danielmcpherson9062
    @danielmcpherson9062 3 роки тому

    THANK YOU!!! THIS IS AMAZING!!!
    - A fellow Scot

  • @niteshtiwari1716
    @niteshtiwari1716 6 років тому

    Thanks mate! I learned something today, very good video.

  • @Smarandii
    @Smarandii 3 роки тому

    this guy's commentator abilities is so funny that Im actually laughed all tutorial, great explanation tho

  • @fahadanwaar1782
    @fahadanwaar1782 4 роки тому

    Thanks Man You solved My Problem

  • @bradleydoshen1308
    @bradleydoshen1308 7 років тому +1

    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!

    • @binarythistle
      @binarythistle  7 років тому +2

      Hey Bradley, yes I'll put a POST example on my backlog of videos to produce next. Thanks for the feedback.

  • @jeroenvandervelden7318
    @jeroenvandervelden7318 4 роки тому +1

    Good video sir, curious how a POST with Auth header will work

    • @binarythistle
      @binarythistle  4 роки тому

      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

  • @AD-ng4mz
    @AD-ng4mz 7 років тому

    Nice and easy to understand. Thank you.

  • @giojapitana7437
    @giojapitana7437 6 років тому

    best vid ever 12/10
    more like this please thanks

  • @wilsonodipo7193
    @wilsonodipo7193 3 роки тому

    Excellent video this. Thank you

  • @tayfuny3441
    @tayfuny3441 7 років тому +4

    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

    • @binarythistle
      @binarythistle  7 років тому +2

      Hey thanks for the feedback, and great suggestion on utilising passwords etc. I'll put it on my list of follow up videos!

    • @SalocinFox
      @SalocinFox 7 років тому

      I cannot get the authentication to work :( really urgent though... any tips?

    • @binarythistle
      @binarythistle  7 років тому

      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

    • @SalocinFox
      @SalocinFox 7 років тому

      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 :)

  • @shankargokul8607
    @shankargokul8607 6 років тому

    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

  • @sudipto80
    @sudipto80 6 років тому

    It all finally made sense! Thanks!!!

  • @muhammadmasudkhan8644
    @muhammadmasudkhan8644 4 роки тому

    Thank you!! Your videos have successfully helped me build my first REST API application, do you have any content on webhooks? Thank you

  • @johnny_rain3226
    @johnny_rain3226 7 років тому

    Excellent explanation. Thank you.

  • @ricardopalhares6386
    @ricardopalhares6386 5 років тому +1

    Great tutorial. Thanks!!!!!

  • @stenmartens7179
    @stenmartens7179 6 років тому

    > youtube search for api tutorial c#
    > first vid contains "C#", "Step by step" and is 24 minutes long
    > clicks
    > scottisch accent
    > fuck yes

  • @alexbiosoft
    @alexbiosoft 7 років тому

    Thank you! great tutorial very helpfull!
    greetings from Mexico!

  • @cleberpess
    @cleberpess 6 років тому

    Congratulations, great video. Thanks!

  • @dineshrays
    @dineshrays 6 років тому

    Thank you so much ,,it was really helpful to understand ,,thank you once again

  • @badatpseudoscience
    @badatpseudoscience 5 років тому

    Great video. Thanks.

  • @leonidpantaler8864
    @leonidpantaler8864 4 роки тому

    Excellent tutorial!

  • @EDW4RD249
    @EDW4RD249 4 роки тому

    Thank you, amazing explanation!

  • @zarcon5750
    @zarcon5750 6 років тому

    I really enjoyed this, thanks for the assistance! :)

  • @jayashreenagarajachar6320
    @jayashreenagarajachar6320 7 років тому

    Awesome tutor!. Thanks a lot. It helped me a lot.

  • @wason1182
    @wason1182 6 років тому

    Gracias mi estimado me funcionó bastante . Buena explicación

  • @raghunadhthota7015
    @raghunadhthota7015 4 роки тому

    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

  • @olddognewtricks4804
    @olddognewtricks4804 3 роки тому

    Great video, I am guessing I can use RestSharp for XML instead of Json? Then use XMLConvert instead of JsonConvert? Thanks,

  • @GerardBumbar
    @GerardBumbar 6 років тому

    Great tutorial! Works perfect for me :)

    • @binarythistle
      @binarythistle  6 років тому

      Cool glad you found it useful Mihail!

  • @stevenclark6552
    @stevenclark6552 6 років тому

    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.

  • @sms.sheria
    @sms.sheria 7 років тому +1

    Great tutorial man. thanks a for your help, keep it up.

    • @binarythistle
      @binarythistle  7 років тому

      Cheers mate - thanks for the feedback!

    • @sms.sheria
      @sms.sheria 7 років тому +1

      Hey mate can you please add more videos on POST method :-) it will be very helpful.

    • @binarythistle
      @binarythistle  7 років тому +1

      Hey Serge - good suggestion hadn't thought about the differences with POST. I'll put it on the backlog of suggestions.

  • @josecosta3339
    @josecosta3339 3 роки тому

    very good my friend

  • @jacksonbolanos8209
    @jacksonbolanos8209 5 років тому

    Excelente, me funciono tal cual como el video, I'm happy with your solution.

  • @whitedragonsmoddingteam7927
    @whitedragonsmoddingteam7927 5 років тому +1

    excellent tut keep it up bro

  • @YoSo14
    @YoSo14 6 років тому

    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!

    • @binarythistle
      @binarythistle  6 років тому

      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

    • @YoSo14
      @YoSo14 6 років тому

      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!

  • @josselbarnobal87
    @josselbarnobal87 4 роки тому

    How to launch and install games using c# without opening the microsoft store? Any videos or tutorials that you can recommend?

  • @tamarkan
    @tamarkan 2 роки тому

    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"?

  • @marianpogor7786
    @marianpogor7786 6 років тому

    Great tutorial! Thanks

  • @yaroslavtemchuk6924
    @yaroslavtemchuk6924 6 років тому

    Perfect video, thanks man

    • @binarythistle
      @binarythistle  6 років тому

      Hey Yaroslav! Thanks for the awesome feedback - hope the video was useful. Cheers, Les

  • @ubirailtonbritto24
    @ubirailtonbritto24 4 роки тому

    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

  • @mamadoualphadiallo1603
    @mamadoualphadiallo1603 3 роки тому

    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.

  • @samuelcramphorn3874
    @samuelcramphorn3874 7 років тому

    Cracking Video, thanks very much!

    • @binarythistle
      @binarythistle  7 років тому +1

      Thanks Samuel - really appreciate the feedback!

    • @samuelcramphorn3874
      @samuelcramphorn3874 7 років тому

      Do you provide any other tutorials relating to REST or can advertise?

    • @binarythistle
      @binarythistle  7 років тому

      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!

  • @ianedmonds9191
    @ianedmonds9191 3 роки тому

    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.

    • @ianedmonds9191
      @ianedmonds9191 3 роки тому

      Also a Scot btw Are you in any sort of user group?

  • @nomoretechie
    @nomoretechie 6 років тому

    Thanks for the superb video.

    • @binarythistle
      @binarythistle  6 років тому

      Thanks Anand - hope you fond it useful! Cheers, Les

  • @batuhanyerinde937
    @batuhanyerinde937 5 років тому

    Thanks, for tutorial.

  • @teyyubaliyev972
    @teyyubaliyev972 4 роки тому

    great job

  • @antoniosegovia8622
    @antoniosegovia8622 5 років тому

    What a great tutorial and sweet accent! Where are you from? It sounds like an Essex accent :P

    • @binarythistle
      @binarythistle  5 років тому +2

      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!

  • @monicadiep2006
    @monicadiep2006 3 місяці тому

    Hi, it looks like that API url doesn’t work anymore?

  • @timmanley3379
    @timmanley3379 7 років тому

    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

    • @binarythistle
      @binarythistle  7 років тому +1

      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!).

  • @asiaminor78
    @asiaminor78 6 років тому

    Thank you very much !

  • @darkman237
    @darkman237 6 років тому

    Great! If you could do a tutorial on using the API of firebase database in UNITY3d?

  • @LuisCorea
    @LuisCorea 4 роки тому

    Can you upload a PUT method? Thanks.

  • @DeWitteWilson
    @DeWitteWilson 6 років тому

    Awesome. Thank you.

  • @maletut22
    @maletut22 5 років тому

    Awesome Video, i have a question tho.
    How do i implement a Body for POST/PUT?

    • @binarythistle
      @binarythistle  5 років тому

      Hi there, my video on POSTing data should do the trick! ua-cam.com/video/_6IdfPMxYFI/v-deo.html

  • @inffoc
    @inffoc 7 років тому

    THANK YOU VERY VERY MUCH!!!!

    • @binarythistle
      @binarythistle  7 років тому

      Hey Willian - glad you found it useful!

  • @LuxTheKarma
    @LuxTheKarma 6 років тому

    great tutorial thank you

  • @HitmonCZ
    @HitmonCZ 6 років тому

    Great vid, thank you.

  • @op8995
    @op8995 6 років тому

    good tutorial. thanks.

  • @jorkieOficial
    @jorkieOficial 4 роки тому +1

    excelent video, you has the first resource of internet how can help me

  • @andreaschristou716
    @andreaschristou716 7 років тому +1

    waiting for new videos about this topic

    • @binarythistle
      @binarythistle  7 років тому

      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!

    • @andreaschristou716
      @andreaschristou716 7 років тому

      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?

    • @binarythistle
      @binarythistle  7 років тому

      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.

  • @humzariaz7345
    @humzariaz7345 5 років тому

    hey sir , how we can use httpreponse ? can we get "id" or other values from Httpresponse ...?

  • @pinakidas397
    @pinakidas397 4 роки тому

    Do you have anything on oData compliant ones? I just did one last month to integrate with D365 and it was very tricky.

  • @danielhinjosgarcia7584
    @danielhinjosgarcia7584 5 років тому

    GOD BLESS YOU