Skip to content

Commit 6c45d2d

Browse files
committed
added additional properties to contacts function
1 parent e7f0a16 commit 6c45d2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hubspot-contacts.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
# description: Filter to apply with key/values specified as a URL query string where the keys correspond to the properties to filter.
1616
# required: false
1717
# returns:
18+
# - name: vid
19+
# type: integer
20+
# description: The id for the contact
21+
# - name: portal_id
22+
# type: integer
23+
# description: The portal id for the contact
1824
# - name: first_name
1925
# type: string
2026
# description: The first name of the contact
@@ -163,6 +169,8 @@ def get_item_info(item):
163169

164170
info = OrderedDict()
165171

172+
info['vid'] = item.get('vid')
173+
info['portal_id'] = item.get('portal-id')
166174
info['first_name'] = item.get('properties').get('firstname',{}).get('value','')
167175
info['last_name'] = item.get('properties').get('lastname',{}).get('value','')
168176
info['email'] = item.get('properties').get('email',{}).get('value','')

0 commit comments

Comments
 (0)