@@ -49,7 +49,7 @@ $client = new IntercomClient(<insert_token_here>, null);
4949``` php
5050/** Create a user */
5151$client->users->create([
52- "email" => "test@intercom.io ",
52+ "email" => "test@example.com ",
5353 "custom_attributes" => ['foo' => 'bar']
5454]);
5555
@@ -58,7 +58,7 @@ $client->users->create([
5858 * can use create to update users if you wish)
5959 */
6060$client->users->update([
61- "email" => "test@intercom.io ",
61+ "email" => "test@example.com ",
6262 "custom_attributes" => ['foo' => 'bar']
6363]);
6464
@@ -70,7 +70,7 @@ $client->users->getUser("570680a8a1bcbca8a90001b9");
7070
7171/** Add companies to a user */
7272$client->users->create([
73- "email" => "test@intercom.io ",
73+ "email" => "test@example.com ",
7474 "companies" => [
7575 [
7676 "company_id" => "3"
@@ -80,7 +80,7 @@ $client->users->create([
8080
8181/** Remove companies from a user */
8282$client->users->create([
83- "email" => "test@intercom.io ",
83+ "email" => "test@example.com ",
8484 "companies" => [
8585 [
8686 "company_id" => "3",
@@ -90,7 +90,7 @@ $client->users->create([
9090]);
9191
9292/** Find a single user by email */
93- $client->users->getUsers(["email" => "bob@intercom.io "]);
93+ $client->users->getUsers(["email" => "bob@example.com "]);
9494
9595/** List all users up to 10k records */
9696$client->users->getUsers([]);
@@ -112,7 +112,7 @@ $client->users->scrollUsers();
112112 * See more options here: https://developers.intercom.io/reference#create-lead
113113 */
114114$client->leads->create([
115- "email" => "test@intercom.io ",
115+ "email" => "test@example.com ",
116116 "custom_attributes" => ['foo' => 'bar']
117117]);
118118
@@ -121,7 +121,7 @@ $client->leads->create([
121121 * In practice you can use create to update leads if you wish)
122122 */
123123$client->leads->update([
124- "email" => "test@intercom.io ",
124+ "email" => "test@example.com ",
125125 "custom_attributes" => ['foo' => 'bar']
126126]);
127127
@@ -222,11 +222,11 @@ $client->segments->getSegment("58a707924f6651b07b94376c");
222222$client->events->create([
223223 "event_name" => "testing",
224224 "created_at" => 1391691571,
225- "email" => "test@intercom.io "
225+ "email" => "test@example.com "
226226]);
227227
228228/** View events for a user */
229- $client->events->getEvents(["email" => "bob@intercom.io "]);
229+ $client->events->getEvents(["email" => "bob@example.com "]);
230230```
231231
232232## Companies
@@ -283,7 +283,7 @@ $client->messages->create([
283283 ],
284284 "to" => [
285285 "type" => "user",
286- "email" => "bob@intercom.io "
286+ "email" => "bob@example.com "
287287 ]
288288]);
289289```
@@ -313,7 +313,7 @@ $client->conversations->getConversation("1234", [
313313 * See more options here: https://developers.intercom.io/reference#replying-to-a-conversation
314314 */
315315$client->conversations->replyToConversation("5678", [
316- "email" => "test@intercom.io ",
316+ "email" => "test@example.com ",
317317 "body" => "Thanks :)",
318318 "type" => "user",
319319 "message_type" => "comment"
@@ -324,7 +324,7 @@ $client->conversations->replyToConversation("5678", [
324324 * See more options here: https://developers.intercom.com/reference#replying-to-users-last-conversation
325325 */
326326$client->conversations->replyToLastConversation([
327- "email" => "test@intercom.io ",
327+ "email" => "test@example.com ",
328328 "body" => "Thanks :)",
329329 "type" => "user",
330330 "message_type" => "comment"
0 commit comments