closeio 2.6.7 → 2.6.8

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
  SHA1:
3
- metadata.gz: 59368f8fa8ef61dfc4f30ab7fde43624370b1a33
4
- data.tar.gz: 854cf38fc7c0a9e4126f3f0f1a5c9dd5111af438
3
+ metadata.gz: 7048842d7bb765586b758feb7b78a002fdd6989a
4
+ data.tar.gz: 9a3c9f253f5f57abe21324eb485da571aa3bc3ef
5
5
  SHA512:
6
- metadata.gz: 4c2b18e85c3ff3545aa600b45bcdadcbba39fe5a31707e0336a7a71d4c7fecf9e1deae9d6639953f242ac1ccdb5a0afb46e670833037f57bc50b2484eb053f77
7
- data.tar.gz: 5836fc8aaa198b1bf684a7bdd1007be0f1e9e6a07cbecde388b777f30db1469dd08397f800714293262c203c976a18b5440e0ce827ba148817d5d22150c8b487
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
- # Find leads that match fields
32
- client.list_leads('custom.favorite_color:"cornflower blue"')
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
@@ -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
- get("#{note_path}#{id}/")
25
+ def update_note(id, options={})
26
+ put("#{note_path}#{id}/", options)
23
27
  end
24
28
 
25
29
  def delete_note(id)
@@ -0,0 +1,11 @@
1
+ module Closeio
2
+ class Client
3
+ module Event
4
+
5
+ def list_events(options = {})
6
+ get("event/", options)
7
+ end
8
+
9
+ end
10
+ end
11
+ end
@@ -2,8 +2,12 @@ module Closeio
2
2
  class Client
3
3
  module Opportunity
4
4
 
5
- def list_opportunities(options={})
6
- get(opportunity_path, options)
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)
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = "2.6.7"
2
+ VERSION = "2.6.8"
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.6.7
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-06-12 00:00:00.000000000 Z
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.4.8
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