Created
April 13, 2017 00:11
-
-
Save joel-thompson/edf29c4f57bcaba755a42bd98d7c06f6 to your computer and use it in GitHub Desktop.
Intercom PHP custom attribute examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client->users->create([ | |
"user_id" => "161661", | |
"custom_attributes" => [ | |
"my_custom_attribute" => "foo123" | |
] | |
]); | |
$client->companies->create([ | |
"name" => "foocorp", "id" => "135", | |
"custom_attributes" => [ | |
"company_custom_att" => "bar123" | |
] | |
]); | |
$client->users->create([ | |
"user_id" => "161661", | |
"custom_attributes" => [ | |
"my_custom_attribute" => "foo12345" | |
], | |
"companies" => [ | |
[ | |
"company_id" => "135", | |
"custom_attributes" => [ | |
"company_custom_att" => "bar12345" | |
] | |
] | |
] | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment