closeio 3.17.0 → 3.19.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b6425d5045461d4b24a6903ba1217f7166a7b143741bb60abfa6d796099ffc4
4
- data.tar.gz: 23300ab863e842d24af45d9ca25e4e26a3595abbbc44cfbae515fbf58c9557ac
3
+ metadata.gz: 4ae63fdd75c6691aa4ecff78510c7a6fbdc46612ef68a96d91c04ade015907e1
4
+ data.tar.gz: b0af01e7b5cdf6680df4887a3105d40c08b336d27cf3c366e9e846e711e22f7c
5
5
  SHA512:
6
- metadata.gz: '091c413ff38f4e6ce6691b408abffa53c5d0b08cadb28c2c1b57239d30f58f4274a35723e54b1e1c558f069dba04938c92672a12b672269f51cc803ee467a37d'
7
- data.tar.gz: 5f00108e0ccc6f73476e037bd476b21afec1e16f5e433cc432b581f8d09e9d7af11cd0b4b1fe6a2f3b0576dec4f22307fc03fd00ad9907ac1c1375fafaff6132
6
+ metadata.gz: 2f2090557257d9e9a97ec4eb8baf9d535133d885c68e2ad58c5e24aa2f340d6fb930df263b4564d81f7cd6c0b46e0c799eb9c8353c02636a0745665e311aa372
7
+ data.tar.gz: b8bb28c778ff7e11d323a5c2b9996539b8c0ee1df4cd12f44fb1c336834c28bbd41d0ba063608ba67959e07768dac0bfaf5943ed5bf19b20edd47a068f6cfbe1
data/README.md CHANGED
@@ -19,15 +19,15 @@ Add this line to your application's Gemfile:
19
19
  client = Closeio::Client.new("api key")
20
20
 
21
21
  # Find a specific lead
22
- client.find_lead('lead_xxxxxxxxxxxx')
22
+ lead = client.find_lead('lead_xxxxxxxxxxxx')
23
23
 
24
24
  # See some data about the lead
25
- lead[:data][:addresses]
26
- lead[:data][:contacts]
27
- lead[:data][:opportunities]
25
+ lead["addresses"]
26
+ lead["contacts"]
27
+ lead["opportunities"]
28
28
 
29
29
  # Update the lead
30
- client.update_lead(lead.id,
30
+ client.update_lead(lead["id"],
31
31
  name: "Bluth Company",
32
32
  addresses: [{
33
33
  "address_1": "747 Howard St",
@@ -36,9 +36,9 @@ Add this line to your application's Gemfile:
36
36
  )
37
37
 
38
38
  # Delete the lead
39
- client.delete_lead(lead.id)
39
+ client.delete_lead(lead["id"])
40
40
 
41
- # Merge two leads into one
41
+ # Given two lead objects with an id property, merge two leads into one
42
42
  client.merge_leads(source_lead.id, destination_lead.id)
43
43
 
44
44
  # Find leads that match field
@@ -66,10 +66,6 @@ Add this line to your application's Gemfile:
66
66
  custom_field_name: 'Local Database ID',
67
67
  custom_field_value: '123'
68
68
  )
69
-
70
- # Saved Search (SmartView)
71
- smart_view = client.list_smart_views
72
- smart_views[:data][:leads]
73
69
  ````
74
70
 
75
71
  ### Options
@@ -13,6 +13,7 @@ module Closeio
13
13
  include Closeio::Client::CustomActivityType
14
14
  include Closeio::Client::CustomField
15
15
  include Closeio::Client::EmailAccount
16
+ include Closeio::Client::EmailActivity
16
17
  include Closeio::Client::EmailTemplate
17
18
  include Closeio::Client::Event
18
19
  include Closeio::Client::IntegrationLink
@@ -2,7 +2,7 @@ module Closeio
2
2
  class Client
3
3
  module EmailAccount
4
4
  def list_email_accounts
5
- get('email_account/')
5
+ get('connected_account/')
6
6
  end
7
7
  end
8
8
  end
@@ -0,0 +1,35 @@
1
+ module Closeio
2
+ class Client
3
+ module EmailActivity
4
+ def list_email_activities(options = {}, paginate = false)
5
+ if paginate
6
+ paginate(email_activity_path, options)
7
+ else
8
+ get(email_activity_path, options)
9
+ end
10
+ end
11
+
12
+ def find_email_activity(id)
13
+ get("#{email_activity_path}#{id}/")
14
+ end
15
+
16
+ def create_email_activity(options = {})
17
+ post(email_activity_path, options)
18
+ end
19
+
20
+ def update_email_activity(id, options = {})
21
+ put("#{email_activity_path}#{id}/", options)
22
+ end
23
+
24
+ def delete_email_activity(id)
25
+ delete("#{email_activity_path}#{id}/")
26
+ end
27
+
28
+ private
29
+
30
+ def email_activity_path
31
+ 'activity/email/'
32
+ end
33
+ end
34
+ end
35
+ end
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = '3.17.0'.freeze
2
+ VERSION = '3.19.0'.freeze
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: 3.17.0
4
+ version: 3.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-29 00:00:00.000000000 Z
11
+ date: 2025-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -135,6 +135,7 @@ files:
135
135
  - lib/closeio/resources/custom_activity_type.rb
136
136
  - lib/closeio/resources/custom_field.rb
137
137
  - lib/closeio/resources/email_account.rb
138
+ - lib/closeio/resources/email_activity.rb
138
139
  - lib/closeio/resources/email_template.rb
139
140
  - lib/closeio/resources/event.rb
140
141
  - lib/closeio/resources/filter.rb