Get Started with the Python SDK
Download the Python SDK from GitHub. Make sure you install all dependencies as described in the SDK’s README.
Once the SDK is configured, initialize it by instantiating an
ET_Client object is the central object in the SDK and performs a number of tasks for you automatically, including acquiring and refreshing OAuth access tokens using the client credentials you specified in the last step.
Once the SDK is initialized, you can use it to programmatically interact with the account represented by the
ET_Client instance. Here's an example of the SDK being used to retrieve all lists in an account:
This code sample highlights the pattern for interacting with objects in the Python SDK. First, you instantiate an
ET_Client object. Then, you instantiate an object of the type you want to work with, in this example
ET_List. Then, you specify account context (the
ET_Client instance) for the operation using the
authStub property. Finally, you perform a REST-style operation on the object:
patch (update), or