README.md in intercom-3.1.0 vs README.md in intercom-3.2.0
- old
+ new
@@ -20,11 +20,11 @@
gem install intercom
Using bundler:
- gem 'intercom', "~> 3.1.0"
+ gem 'intercom', "~> 3.2.0"
## Basic Usage
### Configure your client
@@ -175,10 +175,12 @@
# REPLYING TO CONVERSATIONS
# User (identified by email) replies with a comment
intercom.conversations.reply(:id => conversation.id, :type => 'user', :email => 'joe@example.com', :message_type => 'comment', :body => 'foo')
# Admin (identified by id) replies with a comment
intercom.conversations.reply(:id => conversation.id, :type => 'admin', :admin_id => '123', :message_type => 'comment', :body => 'bar')
+# User (identified by email) replies with a comment and attachment
+intercom.conversations.reply(:id => conversation.id, :type => 'user', :email => 'joe@example.com', :message_type => 'comment', :body => 'foo', :attachment => ['http://www.example.com/attachment.jpg'])
# Open
intercom.conversations.open(id: conversation.id, admin_id: '123')
# Close
@@ -331,10 +333,10 @@
# Convert a contact into a user
intercom.contacts.convert(contact, user)
# Delete a contact
-intercom.contacts.find(id: "some_id").delete
+intercom.contacts.delete(contact)
```
### Counts
```ruby