REST API Call with Python - DEVASC (200-901) Topic

preview_player
Показать описание
For the DEVASC (200-901) exam, you need to be familiar with how to perform a basic REST API call using Python. We’re going to look at this using a free online resource that provides a working API to test against, and we’ll use the documentation provided to construct a Python script for interacting with that API.

Enjoy the training!

=====================================================
Don't miss a single one of Kevin's YouTube videos. Subscribe here:
=====================================================

=====================================================
Kevin Wallace, CCIEx2 # 7945 Emeritus (Collaboration and Ent. Infrastructure)
=====================================================
Рекомендации по теме
Комментарии
Автор

One note about response.json() method. It doesn’t return json. The telltale sign is the single quotes in the returned value. (valid json uses double quotes). The json() requests method is a json decoder method which expects a json string and returns a python data type like dict or list.

noahleaman
Автор

This was excellent. Thanks for sharing.

NowWhat
Автор

Thanks for this! I really like your style, taking it step by step, speaking clearly, etc. I'm somewhat new to Python, having only built like 6 or 7 applications. Not super familiar with industry-standard buzzwords. As I job hunt, I see a lot of "RESTful API" as a skill desired. Everything you show here is the exact way I've accessed APIs in a couple projects and I wonder if that means "RESTful" is something I can claim knowledge of? I had an assumption it was somehow "more" than this.

scotter
Автор

I think the VScode equivalent to atom-beautify might be JSON Tools.
Just remember that json requires double-quotes for strings, whereas python can use single quotes.

fabrice
Автор

How to generate token for restapi using python .when restapi is password protected

Deepakpal-dqss