#100DaysOfCode in Python Transcripts
Chapter: Days 55-57: Structured API clients with uplink
Lecture: Demo: Exploring the service

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Over here at consumer_services_api.talkpython.fm, we have at least three services that you can play with. So this is the backend for the blog,
0:12 and it gives you the operations right here. So you can get, and it'll list, if you just do a getting into this, it will give you all of the blog posts.
0:20 If you do a get against that, some particular id, you'll get the details only about that blog post. Create a new one you do an HTTP POST.
0:29 To update one you do a PUT, and to actually remove one you do a DELETE against these particular URL's here. So this can be totally done with requests,
0:37 but it's a lot of juggling the pieces. And if you use the restricted version, then you've got to use the authentication settings
0:44 that actually go into the headers and stuff like that. There's also this kind of crazy SOAP version, we're going to stay away from that.
0:50 So, we're just going to focus with this one here, but if you wanted to get more interesting stuff going on, you could actually use like
0:57 basic authentication with those, and so on. So if we look here, and you'll see we have a list, and then just blog post, blog post, blog post.
1:06 Now these are not super interesting here, right? They're just title, content, view count, id, which is kind of like a primary key,
1:14 and then the date it was published, okay? They're not advanced, but it's plenty for us to play with. Right, so we're going to use this URL,
1:23 and I would just leave this open, we might come back in and refer to these as we build out our service here.
1:28 You guys can play with this, you can update and delete posts however you want. Actually, it's each person that comes and works with
1:37 the service gets their own copy. So don't worry you're not going to mess it up for someone, have fun with it.

Talk Python's Mastodon Michael Kennedy's Mastodon