README.md in mrkt-0.5.0 vs README.md in mrkt-0.6.0
- old
+ new
@@ -51,19 +51,19 @@
```
### Get leads matching an email, print their id and email
```ruby
-response = client.get_leads :email, 'sammy@acme.com'
+response = client.get_leads(:email, 'sammy@acme.com')
response[:result].each do |result|
p "id: #{result[:id]}, email: #{result[:email]}"
end
```
### Create/Update leads
```ruby
-response = client.createupdate_leads([ email: 'sample@example.com', firstName: 'John' ], lookup_field: :email)
+response = client.createupdate_leads([{ email: 'sample@example.com', firstName: 'John' }], lookup_field: :email)
response[:result].each do |result|
p "id: #{result[:id]}, email: #{result[:email]}"
end
```