File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,12 @@ def get_contact_by_email(email):
103103 contact = api_client .crm .contacts .search_api .do_search (request )
104104 if contact .results :
105105 contact_detail = contact .results [0 ]
106- return {"id" : contact_detail .id }
106+ contact_properties = contact_detail .properties
107+ return {"id" : contact_detail .id ,
108+ "email" : contact_properties ["email" ],
109+ "firstname" : contact_properties ["firstname" ],
110+ "lastname" : contact_properties ["lastname" ],
111+ }
107112 else :
108113 return {}
109114 except contacts .exceptions .ApiException as e :
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ alembic==1.7.7
22anyio == 3.6.1
33black == 22.3.0
44certifi == 2021.10.8
5+ coverage == 6.3.3
56charset-normalizer == 2.0.12
67click == 8.1.3
78fastapi == 0.78.0
You can’t perform that action at this time.
0 commit comments