diff --git a/docs/source/guide_developer.rst b/docs/source/guide_developer.rst index 52656f21039720900c0d51352214c357347a6f0d..092db164cc4721b480ac51abf5a5bbb51bd56f3d 100644 --- a/docs/source/guide_developer.rst +++ b/docs/source/guide_developer.rst @@ -83,7 +83,7 @@ Then we should see something like the following (although without the formatting Using Python ~~~~~~~~~~~~ -We can duplicate the cURL request above in Python like this: +We can duplicate the cURL request above in Python 3. Creating a new Python file (e.g. *api-test.py*) with the following contents: .. code-block:: python @@ -97,6 +97,12 @@ We can duplicate the cURL request above in Python like this: response = requests.get(url, headers=headers) print(response) +We can run this example using: + +.. code-block:: console + + $ python api-test.py + Which should display the same output as we saw with cURL.