closeio 2.6.7 → 2.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -2
- data/lib/closeio/client.rb +1 -0
- data/lib/closeio/resources/activity.rb +6 -2
- data/lib/closeio/resources/event.rb +11 -0
- data/lib/closeio/resources/opportunity.rb +6 -2
- data/lib/closeio/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7048842d7bb765586b758feb7b78a002fdd6989a
|
4
|
+
data.tar.gz: 9a3c9f253f5f57abe21324eb485da571aa3bc3ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc88584381f3babddcb425d2cb8c9ebfb84552605a8676c9dba42c998041e0caf5ce2789809f235d6e26feb5dacb99a32dd92d59c86cb9287399d41fdabdddd1
|
7
|
+
data.tar.gz: b1fbaa543b0beb5da4f7b3c114fe4da5d7fd93227a2ae888aee6b4b5451e2f877d6aa2a1eb88e8f34bb0267f6ce59b46e40207d3675a2a0d67ea9ffa2ad109e4
|
data/README.md
CHANGED
@@ -28,8 +28,29 @@ Add this line to your application's Gemfile:
|
|
28
28
|
lead.data.contacts
|
29
29
|
lead.data.opportunities
|
30
30
|
|
31
|
-
#
|
32
|
-
client.
|
31
|
+
# Update the lead
|
32
|
+
client.update_lead(lead.id,
|
33
|
+
name: "Bluth Company",
|
34
|
+
addresses: [{
|
35
|
+
"address_1": "747 Howard St",
|
36
|
+
"city": "San Francisco"
|
37
|
+
}]
|
38
|
+
)
|
39
|
+
|
40
|
+
# Delete the lead
|
41
|
+
client.delete_lead(lead.id)
|
42
|
+
|
43
|
+
# Merge two leads into one
|
44
|
+
client.merge_leads(source_lead.id, destination_lead.id)
|
45
|
+
|
46
|
+
# Find leads that match field
|
47
|
+
client.list_leads(name: "Wayne Enterprises")
|
48
|
+
|
49
|
+
# Find leads that match custom field
|
50
|
+
client.list_leads('"custom.Favorite Color":"cornflower blue"')
|
51
|
+
|
52
|
+
# Use paginate: true to fetch all the leads
|
53
|
+
client.list_leads(name: "Wayne Enterprises", paginate: true)
|
33
54
|
|
34
55
|
# Create a lead
|
35
56
|
client.create_lead(
|
@@ -40,6 +61,14 @@ Add this line to your application's Gemfile:
|
|
40
61
|
}]
|
41
62
|
)
|
42
63
|
|
64
|
+
# Create a bulk edit job for leads filtered by a custom field
|
65
|
+
client.bulk_edit(
|
66
|
+
query: '"custom.International Database ID":12345',
|
67
|
+
type: 'set_custom_field',
|
68
|
+
custom_field_name: 'Local Database ID',
|
69
|
+
custom_field_value: '123'
|
70
|
+
)
|
71
|
+
|
43
72
|
# Saved Search (SmartView)
|
44
73
|
smart_view = client.list_smart_views
|
45
74
|
smart_views.leads
|
data/lib/closeio/client.rb
CHANGED
@@ -13,6 +13,7 @@ module Closeio
|
|
13
13
|
include Closeio::Client::CustomField
|
14
14
|
include Closeio::Client::EmailAccount
|
15
15
|
include Closeio::Client::EmailTemplate
|
16
|
+
include Closeio::Client::Event
|
16
17
|
include Closeio::Client::IntegrationLink
|
17
18
|
include Closeio::Client::Lead
|
18
19
|
include Closeio::Client::LeadStatus
|
@@ -14,12 +14,16 @@ module Closeio
|
|
14
14
|
get(note_path, options)
|
15
15
|
end
|
16
16
|
|
17
|
+
def find_note(id)
|
18
|
+
get("#{note_path}#{id}/")
|
19
|
+
end
|
20
|
+
|
17
21
|
def create_note(options)
|
18
22
|
post(note_path, options)
|
19
23
|
end
|
20
24
|
|
21
|
-
def update_note(id)
|
22
|
-
|
25
|
+
def update_note(id, options={})
|
26
|
+
put("#{note_path}#{id}/", options)
|
23
27
|
end
|
24
28
|
|
25
29
|
def delete_note(id)
|
@@ -2,8 +2,12 @@ module Closeio
|
|
2
2
|
class Client
|
3
3
|
module Opportunity
|
4
4
|
|
5
|
-
def list_opportunities(options={})
|
6
|
-
|
5
|
+
def list_opportunities(options={}, paginate = false)
|
6
|
+
if paginate
|
7
|
+
paginate(opportunity_path, options)
|
8
|
+
else
|
9
|
+
get(opportunity_path, options)
|
10
|
+
end
|
7
11
|
end
|
8
12
|
|
9
13
|
def find_opportunity(id)
|
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.6.
|
4
|
+
version: 2.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- lib/closeio/resources/custom_field.rb
|
162
162
|
- lib/closeio/resources/email_account.rb
|
163
163
|
- lib/closeio/resources/email_template.rb
|
164
|
+
- lib/closeio/resources/event.rb
|
164
165
|
- lib/closeio/resources/integration_link.rb
|
165
166
|
- lib/closeio/resources/lead.rb
|
166
167
|
- lib/closeio/resources/lead_status.rb
|
@@ -193,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
194
|
version: '0'
|
194
195
|
requirements: []
|
195
196
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.
|
197
|
+
rubygems_version: 2.6.8
|
197
198
|
signing_key:
|
198
199
|
specification_version: 4
|
199
200
|
summary: A Ruby wrapper for the CloseIO API
|