mrkt 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/mrkt/concerns/import_leads.rb +1 -1
- data/lib/mrkt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cf51cc511fdf8b5750a92ddff0f35d7dad207eb
|
4
|
+
data.tar.gz: af29cc93b972906bdc74c260bae780ac3aae713b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eabcdb7980a68d505ca5ec8822a24554ebde7447769403fc40e4671de9395244fdefae4d3bc12f281c595c6de451856592b933f95942d7d0160ca012d1258b08
|
7
|
+
data.tar.gz: fcf10904882d7b12a0391200dd755ab51f563a426a51ce1274beefe246bf9fb5d847e35a55bc5867b396d45271fa0408da7074999aeaa89ca64c3c0b8e6df448
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -53,7 +53,7 @@ client.debug = true
|
|
53
53
|
### Get leads matching an email, print their id and email
|
54
54
|
|
55
55
|
```ruby
|
56
|
-
response = client.get_leads
|
56
|
+
response = client.get_leads(:email, 'sammy@acme.com')
|
57
57
|
response[:result].each do |result|
|
58
58
|
p "id: #{result[:id]}, email: #{result[:email]}"
|
59
59
|
end
|
@@ -62,7 +62,7 @@ end
|
|
62
62
|
### Create/Update leads
|
63
63
|
|
64
64
|
```ruby
|
65
|
-
response = client.createupdate_leads([ email: 'sample@example.com', firstName: 'John' ], lookup_field: :email)
|
65
|
+
response = client.createupdate_leads([{ email: 'sample@example.com', firstName: 'John' }], lookup_field: :email)
|
66
66
|
response[:result].each do |result|
|
67
67
|
p "id: #{result[:id]}, email: #{result[:email]}"
|
68
68
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Mrkt
|
2
2
|
module ImportLeads
|
3
|
-
def import_lead(file, format = 'csv', lookup_field
|
3
|
+
def import_lead(file, format = 'csv', lookup_field: nil, list_id: nil, partition_name: nil)
|
4
4
|
params = {
|
5
5
|
format: format,
|
6
6
|
file: Faraday::UploadIO.new(file, 'text/csv')
|
data/lib/mrkt/version.rb
CHANGED