Extreme API with Python

Table Of Contents
Extreme API with Python
Page | 21
Part no.9036931-00 Rev AA February 2021
Downloading
HTTPS://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cb
fab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl (58kB)
|████████████████████████████████| 61kB 1.9MB/s
Collecting certifi>=2017.4.17 (from requests)
Downloading
HTTPS://files.pythonhosted.org/packages/57/2b/26e37a4b034800c960a00c4e1b3d9ca5d7014e98
3e6e729e33ea2f36426c/certifi-2020.4.5.1-py2.py3-none-any.whl (157kB)
|████████████████████████████████| 163kB 6.4MB/s
Collecting idna<3,>=2.5 (from requests)
Downloading
HTTPS://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736c
ff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl (58kB)
|████████████████████████████████| 61kB 4.1MB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests)
Downloading
HTTPS://files.pythonhosted.org/packages/e1/e5/df302e8017440f111c11cc41a6b432838672f5a7
0aa29227bf58149dc72f/urllib3-1.25.9-py2.py3-none-any.whl (126kB)
|████████████████████████████████| 133kB 3.3MB/s
Collecting chardet<4,>=3.0.2 (from requests)
Using cached
HTTPS://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec751
0b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Installing collected packages: certifi, idna, urllib3, chardet, requests
Successfully installed certifi-2020.4.5.1 chardet-3.0.4 idna-2.9 requests-2.23.0
urllib3-1.25.9
(Extreme API with Python) C:\Extreme API with Python>
To better illustrate its use, you can create some GET and POST examples. A good resource for making
HTTP CALLs is
HTTPS://httpbin.org which is a simple HTTP request and response service. These can be
considered the first REST API CALLs.
Note: The httpbin.org service has been written by the same author than the Requests module.
Examine the GET method. The response content type is set to application/json by default. Keep this
setting so that you can manipulate JSON data.