Skip to content
ballmüllersolutions logo Send an email Call us

Lesson 43 of 49about 180 minutes

Module 1.9 · Asynchronous code

HttpClient: data from the web

What you learn in this lesson

  • query a JSON API on the web with HttpClient
  • read the answer as a record with GetFromJsonAsync and ReadFromJsonAsync
  • read status codes and react correctly to success and failure
  • explain why a redirect counts as an error for a machine API, and set up the client that way
  • create one HttpClient for the whole program instead of one per request
  • let the Kladde fetch the public holidays from a public API

This lesson belongs to course K1

You will see this lesson's text and video once you have bought the course. The goals above show what you learn here.

€149.00

incl. VAT, one-time payment

Access to all of the course's lessons with their exercises, solutions and videos on this site, for 24 months from the purchase. A self-study course: no tutoring, no exams or grading by us, and no certificate.

Sign in and buy

To course K1

To the overview: K1 Getting started: programming with C#