closeio 2.4.2 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/closeio/client.rb +9 -0
- data/lib/closeio/resources/activity.rb +4 -0
- data/lib/closeio/resources/lead.rb +0 -10
- data/lib/closeio/resources/report.rb +10 -7
- data/lib/closeio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 042d8f3e8e37bf4b1e46894a02eac35b6342454c
|
4
|
+
data.tar.gz: c7a943011f9a9841084862d927bc7f2ddf093eb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce2bb960c8c061ef1899924ad1142f7f75f13bb6fc66a4aaf90ec10ded2f0fd33896c66948986c59ca4174ec565904097863edbd555d6c383cfeca0d81269fbb
|
7
|
+
data.tar.gz: e17c0f7bab1519674704fe17593a5e775f9ced638b55c3a5dd663702d7aeec4846c67d7d0940f3a91f40e7890b486591245813da5cc4928f21aa257af2263d9c
|
data/lib/closeio/client.rb
CHANGED
@@ -63,6 +63,15 @@ module Closeio
|
|
63
63
|
|
64
64
|
private
|
65
65
|
|
66
|
+
def assemble_list_query(query, options)
|
67
|
+
options[:query] = if query.respond_to? :map
|
68
|
+
query.map { |k,v| "#{k}:'#{v}'" }.join(' ')
|
69
|
+
else
|
70
|
+
query
|
71
|
+
end
|
72
|
+
|
73
|
+
options
|
74
|
+
end
|
66
75
|
|
67
76
|
def connection
|
68
77
|
Faraday.new(url: "https://app.close.io/api/v1", headers: { accept: 'application/json' }) do |conn|
|
@@ -39,16 +39,6 @@ module Closeio
|
|
39
39
|
id ? "lead/#{id}/" : "lead/"
|
40
40
|
end
|
41
41
|
|
42
|
-
def assemble_list_query(query, options)
|
43
|
-
options[:query] = if query.respond_to? :map
|
44
|
-
query.map { |k,v| "#{k}:'#{v}'" }.join(' ')
|
45
|
-
else
|
46
|
-
query
|
47
|
-
end
|
48
|
-
|
49
|
-
options
|
50
|
-
end
|
51
|
-
|
52
42
|
end
|
53
43
|
end
|
54
44
|
end
|
@@ -2,18 +2,21 @@ module Closeio
|
|
2
2
|
class Client
|
3
3
|
module Report
|
4
4
|
|
5
|
-
#
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
# get("#{@path}/#{org_id}", query: params)
|
10
|
-
# end
|
11
|
-
#
|
5
|
+
# OPTIONS [date_start, date_end, user_id]
|
6
|
+
def activity_report(organization_id, options = {})
|
7
|
+
get("report/activity/#{organization_id}/?", options)
|
8
|
+
end
|
12
9
|
|
10
|
+
# OPTIONS [date_start, date_end]
|
13
11
|
def lead_status_report(organization_id, options = {})
|
14
12
|
get("report/statuses/lead/#{organization_id}/", options)
|
15
13
|
end
|
16
14
|
|
15
|
+
# OPTIONS [date_start, date_end, user_id]
|
16
|
+
def sent_emails_report(organization_id, options = {})
|
17
|
+
get("report/sent_email/#{organization_id}/", options)
|
18
|
+
end
|
19
|
+
|
17
20
|
end
|
18
21
|
end
|
19
22
|
end
|
data/lib/closeio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closeio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|