C# Tutorial: Http Client

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 29

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

    Perfect and straightforward. Will watch more. Thanks

  • @orcodrilo
    @orcodrilo 5 років тому +4

    Thank you for posting this, your example is clear, direct and short. It helped me a lot.

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

      I guess Im pretty off topic but does anybody know of a good place to watch newly released tv shows online?

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

      @Landyn Kaden Flixportal =)

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

      @Beau Jerry thank you, signed up and it seems to work :) I appreciate it !!

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

      @Landyn Kaden You are welcome xD

  • @twotime5430
    @twotime5430 4 роки тому +4

    Finally!! Something simple and understandable. Thanks!!

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

    Finally a nice video, thank you

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

    Thanks Ian, very helpful.

  • @stitxhbaby5152
    @stitxhbaby5152 4 роки тому +5

    keep this shit going g, really helpful

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

    Supper sir.. how can I include header parameters with key and value in the code

  • @slartibartfast42
    @slartibartfast42 4 роки тому +6

    Nice simple example. Shows me the basics of HttpClient and also how to make a console application async. Is there a part 2 where you store the response in a class?

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

      Yes sir here is the link: ua-cam.com/video/xkB-cIMjXGQ/v-deo.html

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

    It very good to see and clear

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

    thank goodness for this video

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

    Works like a charm!

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

    it doesn't run for me something to do with program

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

    Great tutorial! I have a question though. I'm looking to authenticate when making a GET call to an API. I'll need to include a key, a secret and a nonce. is it also possible to add these to an API URL?

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

      Yes, if those are Query string parameters then you can add them to the URL. Check the documentation of the API you are trying to hit to make sure.

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

    Thank you for the help.

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

    @ Ian:
    Thanks for the great video! Question though - can you also put the HttpClient object initialization within the async GetToDoItems() Method? Would that be a better place to put the class declartaion of HttpClient since it only lives within that scope?

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

      No, you initialize the HttpClient where he did. Otherwise it can cause errors, according to the docs.

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

    You are in the same class. You do not need to create a new Program object inside of the Program class.

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

    Anybody else getting a response only some of the time when running the application?

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

    Why do you need to make this app async?

    • @ianschoenrock2285
      @ianschoenrock2285  4 роки тому +4

      Thats a good question. The main reason why is so that we can tell our code to wait while it performs a function. In this case it is getting data from the internet and since we don't know how long that will take, we want to make sure our code waits long enough for it to get the result. For more info check out this link, it goes over it very well: docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/

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

      @@ianschoenrock2285 Thank you!

  • @qwerty-yf5nl
    @qwerty-yf5nl 3 роки тому +1

    Too many mistakes