closeio 3.5.0 → 3.7.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/CHANGELOG.md +8 -0
- data/Gemfile.lock +29 -7
- data/README.md +5 -7
- data/lib/closeio/client.rb +2 -2
- data/lib/closeio/resources/activity.rb +36 -4
- data/lib/closeio/resources/event.rb +4 -0
- data/lib/closeio/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22d578f4787ecdd833a43e948731ec8e70bfed00e9699d286374d0296cd2f694
|
4
|
+
data.tar.gz: 5c68599a29fcef18ac7dd342715e0839bc006f4ae825ef299fea694abcd85e36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fea7e6a3fc6cd61e26bb88f4bd2c27f56321ef0988db718213e568f1244de43b862c3837407c637b5a6133dddaa3322c259288d6894105f098fda1058f1b938c
|
7
|
+
data.tar.gz: 285677e287ce76537a39463771efe7005bb194ee3bad250795f0c4fb6e30a88b11d85ed2ae7c6968df3517b7f8e15a6dd7ab8d5680004a2bab02af5cf07c33c3
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
closeio (
|
4
|
+
closeio (3.7.0)
|
5
5
|
faraday
|
6
6
|
faraday_middleware
|
7
7
|
json
|
@@ -13,16 +13,38 @@ GEM
|
|
13
13
|
public_suffix (>= 2.0.2, < 4.0)
|
14
14
|
crack (0.4.3)
|
15
15
|
safe_yaml (~> 1.0.0)
|
16
|
-
faraday (
|
16
|
+
faraday (1.9.3)
|
17
|
+
faraday-em_http (~> 1.0)
|
18
|
+
faraday-em_synchrony (~> 1.0)
|
19
|
+
faraday-excon (~> 1.1)
|
20
|
+
faraday-httpclient (~> 1.0)
|
21
|
+
faraday-multipart (~> 1.0)
|
22
|
+
faraday-net_http (~> 1.0)
|
23
|
+
faraday-net_http_persistent (~> 1.0)
|
24
|
+
faraday-patron (~> 1.0)
|
25
|
+
faraday-rack (~> 1.0)
|
26
|
+
faraday-retry (~> 1.0)
|
27
|
+
ruby2_keywords (>= 0.0.4)
|
28
|
+
faraday-em_http (1.0.0)
|
29
|
+
faraday-em_synchrony (1.0.0)
|
30
|
+
faraday-excon (1.1.0)
|
31
|
+
faraday-httpclient (1.0.1)
|
32
|
+
faraday-multipart (1.0.3)
|
17
33
|
multipart-post (>= 1.2, < 3)
|
18
|
-
|
19
|
-
|
34
|
+
faraday-net_http (1.0.1)
|
35
|
+
faraday-net_http_persistent (1.2.0)
|
36
|
+
faraday-patron (1.0.0)
|
37
|
+
faraday-rack (1.0.0)
|
38
|
+
faraday-retry (1.0.3)
|
39
|
+
faraday_middleware (1.2.0)
|
40
|
+
faraday (~> 1.0)
|
20
41
|
hashdiff (0.3.6)
|
21
|
-
json (2.1
|
42
|
+
json (2.6.1)
|
22
43
|
minitest (5.10.3)
|
23
|
-
multipart-post (2.
|
44
|
+
multipart-post (2.1.1)
|
24
45
|
public_suffix (3.0.0)
|
25
46
|
rake (12.0.0)
|
47
|
+
ruby2_keywords (0.0.5)
|
26
48
|
safe_yaml (1.0.4)
|
27
49
|
vcr (3.0.3)
|
28
50
|
webmock (3.0.1)
|
@@ -42,4 +64,4 @@ DEPENDENCIES
|
|
42
64
|
webmock
|
43
65
|
|
44
66
|
BUNDLED WITH
|
45
|
-
1.
|
67
|
+
1.16.1
|
data/README.md
CHANGED
@@ -1,16 +1,14 @@
|
|
1
|
-
### A Ruby wrapper for the Close.
|
1
|
+
### A Ruby wrapper for the Close.com API
|
2
2
|
|
3
|
-
Learn about the
|
3
|
+
Learn about the Close API at http://developer.close.com.
|
4
4
|
|
5
|
-
I :heart: Close
|
6
|
-
|
7
|
-
Fwiw, I also run [DripEmails.com](https://www.DripEmails.com) -- a service for building automated email sequences using Close.io
|
5
|
+
I :heart: Close, so if you have problems using the gem or would like to see support for new endpoints, please open a GitHub issue -- I'll get it resolved as quick as I can.
|
8
6
|
|
9
7
|
### Installation
|
10
8
|
Add this line to your application's Gemfile:
|
11
9
|
````ruby
|
12
10
|
# in your Gemfile
|
13
|
-
gem 'closeio', '~> 3.
|
11
|
+
gem 'closeio', '~> 3.6'
|
14
12
|
|
15
13
|
# then...
|
16
14
|
bundle install
|
@@ -110,4 +108,4 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
|
|
110
108
|
- Suggest or add new features
|
111
109
|
|
112
110
|
### Copyright
|
113
|
-
Copyright (c)
|
111
|
+
Copyright (c) 2019 Taylor Brooks. See LICENSE for details.
|
data/lib/closeio/client.rb
CHANGED
@@ -76,7 +76,7 @@ module Closeio
|
|
76
76
|
|
77
77
|
def assemble_list_query(query, options)
|
78
78
|
options[:query] = if query.respond_to? :map
|
79
|
-
query.map { |k, v| "#{k}
|
79
|
+
query.map { |k, v| "#{k}:\"#{v}\"" }.join(' ')
|
80
80
|
else
|
81
81
|
query
|
82
82
|
end
|
@@ -86,7 +86,7 @@ module Closeio
|
|
86
86
|
|
87
87
|
def connection
|
88
88
|
Faraday.new(
|
89
|
-
url: 'https://
|
89
|
+
url: 'https://api.close.com/api/v1',
|
90
90
|
headers: {
|
91
91
|
accept: 'application/json',
|
92
92
|
'User-Agent' => "closeio-ruby-gem/v#{Closeio::VERSION}",
|
@@ -77,6 +77,10 @@ module Closeio
|
|
77
77
|
get(call_path, options)
|
78
78
|
end
|
79
79
|
|
80
|
+
def find_call(id)
|
81
|
+
get("#{call_path}#{id}/")
|
82
|
+
end
|
83
|
+
|
80
84
|
def create_call(options = {})
|
81
85
|
post(call_path, options)
|
82
86
|
end
|
@@ -85,6 +89,30 @@ module Closeio
|
|
85
89
|
delete("#{call_path}#{id}/")
|
86
90
|
end
|
87
91
|
|
92
|
+
#
|
93
|
+
# SMS Activities
|
94
|
+
#
|
95
|
+
|
96
|
+
def list_sms(options = {})
|
97
|
+
get(sms_path, options)
|
98
|
+
end
|
99
|
+
|
100
|
+
def find_sms(id)
|
101
|
+
get("#{sms_path}#{id}/")
|
102
|
+
end
|
103
|
+
|
104
|
+
def create_sms(options)
|
105
|
+
post(sms_path, options)
|
106
|
+
end
|
107
|
+
|
108
|
+
def update_sms(id, options = {})
|
109
|
+
put("#{sms_path}#{id}/", options)
|
110
|
+
end
|
111
|
+
|
112
|
+
def delete_sms(id)
|
113
|
+
delete("#{sms_path}#{id}/")
|
114
|
+
end
|
115
|
+
|
88
116
|
private
|
89
117
|
|
90
118
|
def activity_path
|
@@ -92,19 +120,23 @@ module Closeio
|
|
92
120
|
end
|
93
121
|
|
94
122
|
def note_path
|
95
|
-
|
123
|
+
"#{activity_path}note/"
|
96
124
|
end
|
97
125
|
|
98
126
|
def email_path
|
99
|
-
|
127
|
+
"#{activity_path}email/"
|
100
128
|
end
|
101
129
|
|
102
130
|
def emailthread_path
|
103
|
-
|
131
|
+
"#{activity_path}emailthread/"
|
104
132
|
end
|
105
133
|
|
106
134
|
def call_path
|
107
|
-
|
135
|
+
"#{activity_path}call/"
|
136
|
+
end
|
137
|
+
|
138
|
+
def sms_path
|
139
|
+
"#{activity_path}sms/"
|
108
140
|
end
|
109
141
|
end
|
110
142
|
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.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -168,7 +168,7 @@ homepage: https://github.com/taylorbrooks/closeio
|
|
168
168
|
licenses:
|
169
169
|
- MIT
|
170
170
|
metadata: {}
|
171
|
-
post_install_message:
|
171
|
+
post_install_message:
|
172
172
|
rdoc_options: []
|
173
173
|
require_paths:
|
174
174
|
- lib
|
@@ -183,8 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
- !ruby/object:Gem::Version
|
184
184
|
version: '0'
|
185
185
|
requirements: []
|
186
|
-
rubygems_version: 3.
|
187
|
-
signing_key:
|
186
|
+
rubygems_version: 3.1.4
|
187
|
+
signing_key:
|
188
188
|
specification_version: 4
|
189
189
|
summary: A Ruby wrapper for the CloseIO API
|
190
190
|
test_files: []
|