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:
Hi, @RCoronel👋 I'm going to assume you are using the CRM API | Contacts. Let's try by using the provided example listed here — GET /crm/v3/objects/contacts.
For my test we'll add three additional properties — Phone number (default), website URL (default), and Ultimate Pet (a custom property)
You'll format the request like this:
import hubspot
from pprint import pprint
from hubspot.crm.contacts import ApiException
client = hubspot.Client.create(access_token="YOUR_ACCESS_TOKEN")
try:
api_response = client.crm.contacts.basic_api.get_page(limit=3, properties=["phone,website,ultimate_pet"], archived=False)
pprint(api_response)
except ApiException as e:
print("Exception when calling basic_api->get_page: %s\n" % e)
I set the limit at 3, but you can set it to a value that is appropriate for your needs
My suggestion is to try using the endpoint and example listed in the documentation, and run a few quick tests. This should help clarify how the formatting will look for your request.
Have fun building! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
Hi, @RCoronel👋 I'm going to assume you are using the CRM API | Contacts. Let's try by using the provided example listed here — GET /crm/v3/objects/contacts.
For my test we'll add three additional properties — Phone number (default), website URL (default), and Ultimate Pet (a custom property)
You'll format the request like this:
import hubspot
from pprint import pprint
from hubspot.crm.contacts import ApiException
client = hubspot.Client.create(access_token="YOUR_ACCESS_TOKEN")
try:
api_response = client.crm.contacts.basic_api.get_page(limit=3, properties=["phone,website,ultimate_pet"], archived=False)
pprint(api_response)
except ApiException as e:
print("Exception when calling basic_api->get_page: %s\n" % e)
I set the limit at 3, but you can set it to a value that is appropriate for your needs
My suggestion is to try using the endpoint and example listed in the documentation, and run a few quick tests. This should help clarify how the formatting will look for your request.
Have fun building! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
thanks @Jaycee_Lewis that help a lot but now its truncating some of the responses, a get close to 200 contacts without any relevant property only: 'createdate' 'hs_object_id' 'lastmodifieddate'