镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ https://api.intercom.io/export/content/data
#### Contacts

Note that this is a new resource compatible only with the new [Contacts API](https://developers.intercom.com/intercom-api-reference/reference#contacts-model) released in API v2.0.
- `user_id` refers to an attribute that you would have on your side to identify your users
- `user.id` refers to the internal ID used by intercom to identify users

```ruby
# Create a contact with "lead" role
Expand Down Expand Up @@ -198,7 +200,15 @@ intercom.visitors.convert(visitor, user)

#### Companies

Note that
- "company_id" refers to an attribute that you would have on your side
- company.id refers to the internal company ID used by Intercom


```ruby
# Create a company
company = intercom.companies.create(name: 'Intercom', company_id: 42)

# Find a company by company_id
company = intercom.companies.find(company_id: "44")

Expand Down