#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 when we worked on the search API, consuming the search API, and we were using requests to interact with HTTP services.
0:11 That worked pretty well, but it turns out if you're working with complex APIs, and they're very structured,
0:19 they want you to do things like pass certain headers, some things go into query parameters, others go into a JSON body,
0:26 and it's this sort of rich, known, fixed API, you may well be better off using this thing called Uplink. And that's what we're going to focus on now.
0:36 Instead of consuming HTTP services in an ad hoc fashion, we're going to use the Uplink library to create very structured and predictable APIs.
0:44 So once you implement it, you kind of forget that it's there, and you just treat it like another part of Python.
0:50 So, Uplink is a really great API for building what here they describe as declarative http clients. So instead of implementing all the details,
1:00 you just say, "I want to do a get request against this URL with these variables and parameters, and Uplink, make that happen.
1:08 Make this all work for us."


Talk Python's Mastodon Michael Kennedy's Mastodon