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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 99924000d7bfdc5ea399f4165de67eea51793c80
4
- data.tar.gz: c527dc4718abb27f6b3fae265db14f84c8a96648
2
+ SHA256:
3
+ metadata.gz: 7660a0c545e837ce2b9713f6f347a498b52f0140541007bf39ae4cc32e54aeb9
4
+ data.tar.gz: 605e29e55d503ccad9c08dd44b7085d6c28edf379bce25e6166ae3a20f2f5d1f
5
5
  SHA512:
6
- metadata.gz: b254a0e0cf9511812475d3525b3d8c7f1fea111116355a2cd1e032aeb49bf6df548f0d498241ed132e59caf40c3b8e775b71b4c9945b6ca800c8c328b7094b4c
7
- data.tar.gz: ab520589df5123e715000d1629a65c7d612095a470ca7a0af54269622c8b4df9037d5341639ce6702c6629dd76f595e807858b4643d762b77b1fdee8897bcc9b
6
+ metadata.gz: ab81658e9e6530b4bb747ecf8d65f970b1fe16cf179f680d54eb53b041a64300814df94c4ebd1d330a8b848e4e04cb8a64611a7c27da90c79010e91e271d9e3e
7
+ data.tar.gz: f514b291bd8e3d829a47f6bf51f6976440f2707dec3a2c56287a397763b1cafb610eaa1b2057f2d6f0c88dfab0fcdf5cc4a3fc5c46d47f3b11ee6396b8835296
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  class HelpScout
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
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.11.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-03-29 00:00:00.000000000 Z
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.6.14
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