Thank you for your response Andrs. Yes, this is actually from running the examples and it failed on this line:
I debugged this a little bit and see the data element I got back in response is a dict
{“data_type”:“account”,“data”:{“name”:“lyft”,“timezone”:“America/Los_Angeles”,“timezone_switch_at”:“2013-06-08T07:00:00Z”,“id”:“nrjmpf”,“created_at”:“2013-05-21T18:21:36Z”,“salt”:“6d1587bd32c9c8f12772aabd6d472b82”,“updated_at”:“2016-01-04T03:22:31Z”,“approval_status”:“ACCEPTED”,“deleted”:false},“request”:{“params”:{“account_id”:“nrjmpf”}}}
But it seems the SDK code expect it to be a list here.
I modified my local cursor.py to wrap data in a list which helped pass the line above and the example appears fine executing
account = client.accounts(id=ACCOUNT_ID)
However if I want to immediately do
for campaign in account.campaigns():
I got
AttributeError: ‘Cursor’ object has no attribute ‘campaigns’.
the account should be a Account class not Cursor, right?