In this video, we'll walk through a fairly basic intro on how to query an API via Postman, then show how to use Python to make those same queries a little more dynamic & automated. The intent of this video is not to be an all-inclusive intro to Postman or Python - just to give a few examples, and show how easy it can be to make the jump from Postman to Python. The examples used are created in the context of systems/network automation, but the underlying concepts are usable outside of these areas.
Additional details in the blog: 0x2142.com/from-postman-to-py...
Example code on my GitHub: github.com/0x2142/example-scr...
Links / Follow me elsewhere:
- Blog: 0x2142.com
- Twitter: / 0x2142
- Mastodon/Fediverse: @matt@0x2142.com
- GitHub: github.com/0x2142
If this video was helpful to you, please consider subscribing & sharing! Please leave a comment if you would like similar content! Thank you!!!
Want to support this channel? Buy me a coffee: www.buymeacoffee.com/0x2142
Thanks for watching!
- Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Chapters:
0:00 - Intro / Background
2:27 - Review Test API / JSON Data
4:26 - Postman: Set up & Execute Simple GET Request
7:40 - Postman: Using Query Parameters
10:15 - Python: Install Requests Module & Basic GET Request
11:43 - Python: Querying with User Input
13:30 - Python: Comparing JSON Response with Python List / Dict
14:52 - Python: Filtering & Formatting Response Data
16:49 - Example: Using Meraki Dashboard API to Find Most Common Device OS
Standard Disclaimer: Any comments / opinions here are my own, and do not represent my current or former employers.
Негізгі бет Ғылым және технология From Postman to Python: Your First GET Request
Пікірлер: 27