When executing this code:
contacts_fetched = api_client.crm.contacts.get_all()
The response is the following
'id': '15251',
'properties': {'createdate': '2023-02-24T06:55:51.430Z',
'email': 'emailmaria@hubspot.com',
'firstname': 'Maria',
'hs_object_id': '15251',
'lastmodifieddate': '2023-02-24T06:55:58.246Z',
'lastname': 'Johnson (Sample Contact)'},
'properties_with_history': None,
'updated_at': datetime.datetime(2023, 2, 24, 6, 55, 58, 246000, tzinfo=tzutc())}, {'archived': False,
'archived_at': None,
'associations': None,
'created_at': datetime.datetime(2023, 2, 24, 7, 0, 9, 664000, tzinfo=tzutc()),
I need to add the phone number, website, and other custom properties to the properties retrieved.
but currently I cant find a way to do it in the publicly available documentation, does anybody have a way to solve it, there is old post that just add it to the parameters of the URL with something like:
https://api.hubspot.com/crm/v3/objects/contacts?properties=email&associations=companies
but I’m not sure how to use this with the current Hubspot library, and when I try to use it like a regular API it returns a 401 Http Error