Skip to content

Commit d9219b7

Browse files
committed
Merge pull request #111 from jkeyes/readme
Fixing some errors in code snippets.
2 parents f660522 + cad6ac2 commit d9219b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Resources this API supports:
4444
https://api.intercom.io/messages
4545
https://api.intercom.io/counts
4646
https://api.intercom.io/subscriptions
47-
47+
4848
Additionally, the library can handle incoming webhooks from Intercom and convert to `Intercom::` models.
4949

5050
### Examples
@@ -113,7 +113,7 @@ Intercom::Tag.find_all_for_user(:user_id => '3')
113113
# Tag companies
114114
tag = Intercom::Tag.tag_companies('red', ["42ea2f1b93891f6a99000427"])
115115
# Untag companies
116-
Intercom::Tag.untag_users('blue', ["42ea2f1b93891f6a99000427"])
116+
Intercom::Tag.untag_companies('blue', ["42ea2f1b93891f6a99000427"])
117117
# Iterate over all tags for company
118118
Intercom::Tag.find_all_for_company(:id => '43357e2c3c77661e25000026')
119119
Intercom::Tag.find_all_for_company(:company_id => '6')
@@ -223,7 +223,7 @@ Intercom::Message.create({
223223
:id => "1234"
224224
},
225225
:to => {
226-
:type => :user,
226+
:type => "user",
227227
:id => "5678"
228228
}
229229
})
@@ -271,16 +271,16 @@ Metadata Objects support a few simple types that Intercom can present on your be
271271

272272
```ruby
273273
Intercom::Event.create(:event_name => "placed-order", :email => current_user.email,
274-
:created_at => 1403001013
274+
:created_at => 1403001013,
275275
:metadata => {
276-
:order_date => Time.now.to_i,
276+
:order_date => Time.now.to_i,
277277
:stripe_invoice => 'inv_3434343434',
278278
:order_number => {
279279
:value => '3434-3434',
280280
:url => 'https://example.org/orders/3434-3434'
281281
},
282282
price: {
283-
:currency => 'usd',
283+
:currency => 'usd',
284284
:amount => 2999
285285
}
286286
}

0 commit comments

Comments
 (0)