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 +4 -4
- data/README.md +7 -11
- data/lib/closeio/client.rb +1 -0
- data/lib/closeio/resources/email_account.rb +1 -1
- data/lib/closeio/resources/email_activity.rb +35 -0
- data/lib/closeio/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ae63fdd75c6691aa4ecff78510c7a6fbdc46612ef68a96d91c04ade015907e1
|
4
|
+
data.tar.gz: b0af01e7b5cdf6680df4887a3105d40c08b336d27cf3c366e9e846e711e22f7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[
|
26
|
-
lead[
|
27
|
-
lead[
|
25
|
+
lead["addresses"]
|
26
|
+
lead["contacts"]
|
27
|
+
lead["opportunities"]
|
28
28
|
|
29
29
|
# Update the lead
|
30
|
-
client.update_lead(lead
|
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
|
39
|
+
client.delete_lead(lead["id"])
|
40
40
|
|
41
|
-
#
|
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
|
data/lib/closeio/client.rb
CHANGED
@@ -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
|
@@ -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
|
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: 3.
|
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:
|
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
|