Skip to content

Commit

Permalink
More Contact documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bobjflong committed May 11, 2015
1 parent 78f6bea commit d25cd48
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,29 @@ Intercom::Message.create({
},
:body => "halp"
})

# Message from admin to contact

Intercom::Message.create({
:body => "How can I help :)",
:from => {
:type => "admin",
:id => "1234"
},
:to => {
:type => "contact",
:id => "536e5643as316c83104c400671"
}
})

# Message from a contact
Intercom::Message.create({
:from => {
:type => "contact",
:id => "536e5643as316c83104c400671"
},
:body => "halp"
})
```

#### Events
Expand Down Expand Up @@ -314,6 +337,9 @@ contact.save

# Find contacts by email
contacts = Intercom::Contact.find_all(email: "some_contact@example.com")

# Convert a contact into a user
contact.convert(user)
```

### Subscriptions
Expand Down

0 comments on commit d25cd48

Please sign in to comment.