closeio 2.4.2 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d59e80680c642e6a2703aa9490a2128d2d9324d
4
- data.tar.gz: f1a9baa88bdbfeae57527aef8ad3be23aa14414a
3
+ metadata.gz: 042d8f3e8e37bf4b1e46894a02eac35b6342454c
4
+ data.tar.gz: c7a943011f9a9841084862d927bc7f2ddf093eb5
5
5
  SHA512:
6
- metadata.gz: 76e5e8f39ec617a0db17b281038ddae6cde8bd08ea3c59bc5de8eafe75ce46dc228d3875d7aefd67bd3ee582a7e6dd8424cd267a6b85cd584fcce62cb12405f5
7
- data.tar.gz: 202db79f6a9e9aac9388f0f758fb7b9d5d4d484463ba4feb3da4f76dc4c2ac8dbbd619da651791efefd27c72eca6f396738c7e8eb73836681ad31faa5e2eb408
6
+ metadata.gz: ce2bb960c8c061ef1899924ad1142f7f75f13bb6fc66a4aaf90ec10ded2f0fd33896c66948986c59ca4174ec565904097863edbd555d6c383cfeca0d81269fbb
7
+ data.tar.gz: e17c0f7bab1519674704fe17593a5e775f9ced638b55c3a5dd663702d7aeec4846c67d7d0940f3a91f40e7890b486591245813da5cc4928f21aa257af2263d9c
@@ -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|
@@ -50,6 +50,10 @@ module Closeio
50
50
  # Call Activities
51
51
  #
52
52
 
53
+ def list_calls(options={})
54
+ get(call_path, options)
55
+ end
56
+
53
57
  def create_call(options={})
54
58
  post(call_path, options)
55
59
  end
@@ -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
- # def activity_report(org_id, date_start, date_end, user_id=nil)
6
- # params = {date_start: date_start, date_end: date_end}
7
- # params.merge!(user_id: user_id) if user_id
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
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = "2.4.2"
2
+ VERSION = "2.4.5"
3
3
  end
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.2
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-08-06 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday