Hello
I have a huge problem with my personalized code to link Diabolocom with Hubspot : Could you please help me ?
Here is the part of the code :
try:
ApiResponse = hubspot.crm.contacts.basic_api.get_by_id(event.get(‘object’).get(‘objectId’), properties=[“phone”,“hs_object_id”])
phone = ApiResponse.properties.get(‘phone’)
phone = re.sub(“^0(.*)”,r"33\1",phone)
phone=phone.replace(" “,”")
hs_object_id = ApiResponse.properties.get(‘hs_object_id’)
except ApiException as e:
print(e)
raise
And here is my ERROR :
[ERROR] Runtime.UserCodeSyntaxError: Syntax error in module 'hubspotHandler': invalid syntax (file.py, line 25)
Traceback (most recent call last):
File "/var/task/file.py" Line 25
phone=ApiResponse.properties.get('phone')And i just want to cry beacause i don't understand...Thank you by adavance for your advices !Céline