help_scout 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/help_scout.rb +13 -0
- data/lib/help_scout/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7660a0c545e837ce2b9713f6f347a498b52f0140541007bf39ae4cc32e54aeb9
|
4
|
+
data.tar.gz: 605e29e55d503ccad9c08dd44b7085d6c28edf379bce25e6166ae3a20f2f5d1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab81658e9e6530b4bb747ecf8d65f970b1fe16cf179f680d54eb53b041a64300814df94c4ebd1d330a8b848e4e04cb8a64611a7c27da90c79010e91e271d9e3e
|
7
|
+
data.tar.gz: f514b291bd8e3d829a47f6bf51f6976440f2707dec3a2c56287a397763b1cafb610eaa1b2057f2d6f0c88dfab0fcdf5cc4a3fc5c46d47f3b11ee6396b8835296
|
data/lib/help_scout.rb
CHANGED
@@ -94,6 +94,15 @@ class HelpScout
|
|
94
94
|
search("search/conversations", query)
|
95
95
|
end
|
96
96
|
|
97
|
+
# Public: Delete conversation
|
98
|
+
#
|
99
|
+
# id - conversation id
|
100
|
+
#
|
101
|
+
# More info: https://developer.helpscout.com/help-desk-api/conversations/delete/
|
102
|
+
def delete_conversation(id)
|
103
|
+
delete("conversations/#{id}")
|
104
|
+
end
|
105
|
+
|
97
106
|
# Public: Get customer
|
98
107
|
#
|
99
108
|
# id - customer id
|
@@ -201,6 +210,10 @@ class HelpScout
|
|
201
210
|
request(:get, path, options)
|
202
211
|
end
|
203
212
|
|
213
|
+
def delete(path, options = {})
|
214
|
+
request(:delete, path, options)
|
215
|
+
end
|
216
|
+
|
204
217
|
def search(path, query, page_id = 1, items = [])
|
205
218
|
options = { query: { page: page_id, query: "(#{query})" } }
|
206
219
|
|
data/lib/help_scout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: help_scout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dennis Paagman
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-06-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: httparty
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.7.4
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: HelpScout is an API client for Help Scout
|