README.md in hubspot-ruby-0.2.0 vs README.md in hubspot-ruby-0.2.1
- old
+ new
@@ -35,10 +35,16 @@
```ruby
Hubspot::Contact.create!("email@address.com", {firstname: "First", lastname: "Last"})
```
+#### In batches
+
+```ruby
+Hubspot::Contact.create_or_update!([{email: 'smith@example.com', firstname: 'First', lastname: 'Last'}])
+```
+
### Find a contact
These methods will return a `Hubspot::Contact` object if successful, `nil` otherwise:
```ruby
@@ -52,9 +58,14 @@
```ruby
contact.update!({firstname: "First", lastname: "Last"})
```
+#### In batches
+
+```ruby
+Hubspot::Contact.create_or_update!([{vid: '12345', firstname: 'First', lastname: 'Last'}])
+```
## Contributing to hubspot-ruby
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.