#100DaysOfCode in Python Transcripts
Chapter: Days 55-57: Structured API clients with uplink
Lecture: Introducing uplink

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Recall way back
0:01 when we worked on the search API,
0:03 consuming the search API,
0:05 and we were using requests to interact with HTTP services.
0:10 That worked pretty well,
0:12 but it turns out if you're working with complex APIs,
0:16 and they're very structured,
0:18 they want you to do things like pass certain headers,
0:21 some things go into query parameters,
0:23 others go into a JSON body,
0:25 and it's this sort of rich, known, fixed API,
0:29 you may well be better off using this thing called Uplink.
0:32 And that's what we're going to focus on now.
0:35 Instead of consuming HTTP services in an ad hoc fashion,
0:39 we're going to use the Uplink library to create
0:40 very structured and predictable APIs.
0:43 So once you implement it,
0:44 you kind of forget that it's there,
0:46 and you just treat it like another part of Python.
0:49 So, Uplink is a really great API for building
0:53 what here they describe as declarative http clients.
0:57 So instead of implementing all the details,
0:59 you just say,
1:00 "I want to do a get request against this URL
1:03 with these variables and parameters,
1:05 and Uplink, make that happen.
1:07 Make this all work for us."