How to get Contacts in Pandas Dataframe using HuSpot Apps
SOLVE
I am trying to figure out how to get the Contacts from Hubspot into a pandas Dataframe using the Private Apps key. I can access the contacts but it keeps telling me the object is not subscriptable. This is my coe thus far.
How to get Contacts in Pandas Dataframe using HuSpot Apps
SOLVE
Looks like `contact` is an object, not a dictionary, so you'll need to access it via Python's dot notation. If you print out `contact.__dict__()`, it'll probably show you the objects properties.
You can also print out the object type (`print type(contact)`), and then look up that class in GitHub to see the built-in properties and methods. https://github.com/HubSpot/hubspot-api-python
How to get Contacts in Pandas Dataframe using HuSpot Apps
SOLVE
Looks like `contact` is an object, not a dictionary, so you'll need to access it via Python's dot notation. If you print out `contact.__dict__()`, it'll probably show you the objects properties.
You can also print out the object type (`print type(contact)`), and then look up that class in GitHub to see the built-in properties and methods. https://github.com/HubSpot/hubspot-api-python