Alright, so apparently the admin password that this example script was using got changed. Now I am able to access the "list".
But I am still having problems with the DES api and specifically the "containerType":
cType = item["activity"]["actionObject"]["containerType"]
Am I calling it correctly?
for item in jsonData["list"]: cType = item["activity"]["actionObject"]["containerType"]
I finally figured out the problem here. It appears that the DES API is returning different JSON keys within the same call. From what I can tell if a user creates a discussion and then deletes it, then the action is still there but the underlying data is removed. Therefore information such as status, containerID, containerType, url, subject, pullPath does not exist in that returned item. When I try to pull the containerType, it is missing and throws the error.
I am logging a support case to confirm the exact case. I am guessing that the backend takes some time to refresh the database, and I am catching new activity (deleted) before the database and refresh.