Skip to content

Commit 6687ec0

Browse files
committed
Fixing syntax errors in the Companies section.
1 parent 7ce02fc commit 6687ec0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,19 @@ from intercom import User
8787
# Add a user to one or more companies
8888
user = User.find(email="bob@example.com")
8989
user.companies = [
90-
{company_id 6, name "Intercom"},
91-
{company_id 9, name "Test Company"}
90+
{"company_id": 6, "name": "Intercom"},
91+
{"company_id": 9, "name": "Test Company"}
9292
]
9393
user.save()
9494
# You can also pass custom attributes within a company as you do this
9595
user.companies = [
9696
{
97-
id6,
98-
name "Intercom", custom_attributes {
99-
referral_source "Google"
100-
}
101-
}
97+
"id": 6,
98+
"name": "Intercom",
99+
"custom_attributes": {
100+
"referral_source": "Google"
101+
}
102+
}
102103
]
103104
user.save()
104105
# Find a company by company_id

0 commit comments

Comments
 (0)