closeio 3.5.1 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e28984e22a800234765b294dbdaf0f34f7373f90b1d7da32a88e8abc76870f2
4
- data.tar.gz: 6623425713d188e226a3fa7a431200f4749933aee0d33f36f926718d20c41fe3
3
+ metadata.gz: bb1daecd9039b808a429d34b2fa57f82009ecb3d2c57a26e71d733da2a22a159
4
+ data.tar.gz: c9f593d1150ea433a99f2a569e67e445e87f4a26c8d35bfb05c08f9c3febc111
5
5
  SHA512:
6
- metadata.gz: 74ce0dff7ab16b9a3f56c5d841ad93d84c74fe8244f501f4f1ff678b316721311f6d65b5a26dfa36df48a2f17a90bf6658c724f15f4c8f81124539c028976f0a
7
- data.tar.gz: 1eb77c79276ec7b4d372904b81a8691a406f5d5c8794a596aff19eaf36180e32f84bf6919387eb9e57e08a7e89cc2be4ab0034ee1d0fc4f068aa2c3afe805e60
6
+ metadata.gz: 1cacf449d1b61c86064c8a2735cc4f828cc61773a11be56588312f5f632d1260ddbb53633e2f309b427a14fd2cddb04dee86789c3eb3d063c106602316217c7b
7
+ data.tar.gz: 94dd891de8f66e94fa5c634a3cb7a5d2d9ba3a86cd3cdc0ca5f4a00e96c2b9ead63766e85150698907dafa098f21372a9641f97f76b30876535d60bb3f2a6d47
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.6.1
2
+
3
+ - Add support for SMS activities
4
+
1
5
  ## 3.5.0
2
6
 
3
7
  - Add support for Webhook endpoint
data/README.md CHANGED
@@ -1,16 +1,14 @@
1
- ### A Ruby wrapper for the Close.IO API
1
+ ### A Ruby wrapper for the Close.com API
2
2
 
3
- Learn about the Closeio API at http://developer.close.io.
3
+ Learn about the Close API at http://developer.close.com.
4
4
 
5
- I :heart: Close.io, 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.
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.4'
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) 2018 Taylor Brooks. See LICENSE for details.
111
+ Copyright (c) 2019 Taylor Brooks. See LICENSE for details.
@@ -85,6 +85,30 @@ module Closeio
85
85
  delete("#{call_path}#{id}/")
86
86
  end
87
87
 
88
+ #
89
+ # SMS Activities
90
+ #
91
+
92
+ def list_sms(options = {})
93
+ get(sms_path, options)
94
+ end
95
+
96
+ def find_sms(id)
97
+ get("#{sms_path}#{id}/")
98
+ end
99
+
100
+ def create_sms(options)
101
+ post(sms_path, options)
102
+ end
103
+
104
+ def update_sms(id, options = {})
105
+ put("#{sms_path}#{id}/", options)
106
+ end
107
+
108
+ def delete_sms(id)
109
+ delete("#{sms_path}#{id}/")
110
+ end
111
+
88
112
  private
89
113
 
90
114
  def activity_path
@@ -92,19 +116,23 @@ module Closeio
92
116
  end
93
117
 
94
118
  def note_path
95
- 'activity/note/'
119
+ "#{activity_path}note/"
96
120
  end
97
121
 
98
122
  def email_path
99
- 'activity/email/'
123
+ "#{activity_path}email/"
100
124
  end
101
125
 
102
126
  def emailthread_path
103
- 'activity/emailthread/'
127
+ "#{activity_path}emailthread/"
104
128
  end
105
129
 
106
130
  def call_path
107
- 'activity/call/'
131
+ "#{activity_path}call/"
132
+ end
133
+
134
+ def sms_path
135
+ "#{activity_path}sms/"
108
136
  end
109
137
  end
110
138
  end
@@ -4,6 +4,10 @@ module Closeio
4
4
  def list_events(options = {})
5
5
  get('event/', options)
6
6
  end
7
+
8
+ def find_event(id)
9
+ get("event/#{id}/")
10
+ end
7
11
  end
8
12
  end
9
13
  end
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = '3.5.1'.freeze
2
+ VERSION = '3.6.1'.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.5.1
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-20 00:00:00.000000000 Z
11
+ date: 2020-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday