Skip to content

Commit

Permalink
Removing @intercom addresses from SDK docs (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonFstr authored and choran committed Oct 12, 2017
1 parent 9a2e947 commit a62bedf
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $client = new IntercomClient(<insert_token_here>, null);
```php
/** Create a user */
$client->users->create([
"email" => "test@intercom.io",
"email" => "test@example.com",
"custom_attributes" => ['foo' => 'bar']
]);

Expand All @@ -58,7 +58,7 @@ $client->users->create([
* can use create to update users if you wish)
*/
$client->users->update([
"email" => "test@intercom.io",
"email" => "test@example.com",
"custom_attributes" => ['foo' => 'bar']
]);

Expand All @@ -70,7 +70,7 @@ $client->users->getUser("570680a8a1bcbca8a90001b9");

/** Add companies to a user */
$client->users->create([
"email" => "test@intercom.io",
"email" => "test@example.com",
"companies" => [
[
"company_id" => "3"
Expand All @@ -80,7 +80,7 @@ $client->users->create([

/** Remove companies from a user */
$client->users->create([
"email" => "test@intercom.io",
"email" => "test@example.com",
"companies" => [
[
"company_id" => "3",
Expand All @@ -90,7 +90,7 @@ $client->users->create([
]);

/** Find a single user by email */
$client->users->getUsers(["email" => "bob@intercom.io"]);
$client->users->getUsers(["email" => "bob@example.com"]);

/** List all users up to 10k records */
$client->users->getUsers([]);
Expand All @@ -112,7 +112,7 @@ $client->users->scrollUsers();
* See more options here: https://developers.intercom.io/reference#create-lead
*/
$client->leads->create([
"email" => "test@intercom.io",
"email" => "test@example.com",
"custom_attributes" => ['foo' => 'bar']
]);

Expand All @@ -121,7 +121,7 @@ $client->leads->create([
* In practice you can use create to update leads if you wish)
*/
$client->leads->update([
"email" => "test@intercom.io",
"email" => "test@example.com",
"custom_attributes" => ['foo' => 'bar']
]);

Expand Down Expand Up @@ -222,11 +222,11 @@ $client->segments->getSegment("58a707924f6651b07b94376c");
$client->events->create([
"event_name" => "testing",
"created_at" => 1391691571,
"email" => "test@intercom.io"
"email" => "test@example.com"
]);

/** View events for a user */
$client->events->getEvents(["email" => "bob@intercom.io"]);
$client->events->getEvents(["email" => "bob@example.com"]);
```

## Companies
Expand Down Expand Up @@ -283,7 +283,7 @@ $client->messages->create([
],
"to" => [
"type" => "user",
"email" => "bob@intercom.io"
"email" => "bob@example.com"
]
]);
```
Expand Down Expand Up @@ -313,7 +313,7 @@ $client->conversations->getConversation("1234", [
* See more options here: https://developers.intercom.io/reference#replying-to-a-conversation
*/
$client->conversations->replyToConversation("5678", [
"email" => "test@intercom.io",
"email" => "test@example.com",
"body" => "Thanks :)",
"type" => "user",
"message_type" => "comment"
Expand All @@ -324,7 +324,7 @@ $client->conversations->replyToConversation("5678", [
* See more options here: https://developers.intercom.com/reference#replying-to-users-last-conversation
*/
$client->conversations->replyToLastConversation([
"email" => "test@intercom.io",
"email" => "test@example.com",
"body" => "Thanks :)",
"type" => "user",
"message_type" => "comment"
Expand Down

0 comments on commit a62bedf

Please sign in to comment.