3. Authentication

Let’s take a closer look at the JSON results

Example results model-examples/response.json

Save the access token returned

We need to parse the JSON data into a Python object so we can save our access token.

    {   
       "session": "84467334ce001b924b0e6d529edf99e383.5.271d4238177ab2e811dc5ac9e5a",
       ...
    }

The session value is our access token. We can pluck that single item out easiest if we turn the JSON blob into a Python variable.