VoiceIt2 3.3.0 → 3.4.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/VoiceIt2.rb +1 -89
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5acc67b867b14f9320d0a4a957d364dadfc2b8e0bf0bb301831ab78afd87b445
4
- data.tar.gz: 2cae849bb8d6cf2df35bb3d64eca39398880ab546c884e5015d28e4ebf21d05f
3
+ metadata.gz: cb704b1ca63cb02db5c79379bc45a7a5330d1244fd26af995b7e7ca6e712fa21
4
+ data.tar.gz: 222e29f584578455b9013f5fcf9a662971cb7bea5df00e19151a072d01721090
5
5
  SHA512:
6
- metadata.gz: c8b183db0b76c5693e10acc61b168b75af5806ae118641f3945e85aba18215024839af9e5dc55a595395fb45d4af343a0f3dcc6720ae957601be97a20a38e932
7
- data.tar.gz: 124bd8354fda97f16115845fb589dd0a50499484d85454cec9ed9d76794330c61e5a19f19b34b12cd543e09370560c3e1f01c2793d7d82fe3ecb897aee7eab16
6
+ metadata.gz: 9c2640ae8cd8987cec0fe9d3defc13de05ba2d9ed71c9661e3892f57cf06ae052af1b36d6e82f710ba4724a976d15bb20dcd94f845c3a8838ceee84a5d1acc00
7
+ data.tar.gz: a35afa353f0b55cc193254fa4a059406315fcec7572a50679bd8e4e24b650f8a285f7e0d21c8638500ca235d0d359fadbd8d4c2f1dcdfe22b3939cefa51276d8
data/VoiceIt2.rb CHANGED
@@ -6,7 +6,7 @@ require 'cgi'
6
6
  class VoiceIt2
7
7
 
8
8
  BASE_URL = 'https://api.voiceit.io/'
9
- VERSION = '3.3.0'
9
+ VERSION = '3.4.0'
10
10
 
11
11
  def initialize(key, tok)
12
12
  @notification_url = ""
@@ -139,51 +139,6 @@ class VoiceIt2
139
139
  e.response
140
140
  end
141
141
 
142
- def deleteAllVoiceEnrollments(userId)
143
- return RestClient::Request.new(
144
- :method => :delete,
145
- :url => BASE_URL + 'enrollments/' + userId + '/voice' + @notification_url,
146
- :user => @api_key,
147
- :password => @api_token,
148
- :headers => {
149
- platformId: '35',
150
- platformVersion: VERSION
151
- }).execute
152
-
153
- rescue => e
154
- e.response
155
- end
156
-
157
- def deleteAllFaceEnrollments(userId)
158
- return RestClient::Request.new(
159
- :method => :delete,
160
- :url => BASE_URL + 'enrollments/' + userId + '/face' + @notification_url,
161
- :user => @api_key,
162
- :password => @api_token,
163
- :headers => {
164
- platformId: '35',
165
- platformVersion: VERSION
166
- }).execute
167
-
168
- rescue => e
169
- e.response
170
- end
171
-
172
- def deleteAllVideoEnrollments(userId)
173
- return RestClient::Request.new(
174
- :method => :delete,
175
- :url => BASE_URL + 'enrollments/' + userId + '/video' + @notification_url,
176
- :user => @api_key,
177
- :password => @api_token,
178
- :headers => {
179
- platformId: '35',
180
- platformVersion: VERSION
181
- }).execute
182
-
183
- rescue => e
184
- e.response
185
- end
186
-
187
142
  def getAllFaceEnrollments(userId)
188
143
  return RestClient::Request.new(
189
144
  :method => :get,
@@ -341,49 +296,6 @@ class VoiceIt2
341
296
  end
342
297
  end
343
298
 
344
- def deleteFaceEnrollment(userId, faceEnrollmentId)
345
- return RestClient::Request.new(
346
- :method => :delete,
347
- :url => BASE_URL + 'enrollments/face/' + userId + '/' + faceEnrollmentId.to_s + @notification_url,
348
- :user => @api_key,
349
- :password => @api_token,
350
- :headers => {
351
- platformId: '35',
352
- platformVersion: VERSION
353
- }).execute
354
- rescue => e
355
- e.response
356
- end
357
-
358
- def deleteVoiceEnrollment(userId, voiceEnrollmentId)
359
- return RestClient::Request.new(
360
- :method => :delete,
361
- :url => BASE_URL + 'enrollments/voice/' + userId + '/' + voiceEnrollmentId.to_s + @notification_url,
362
- :user => @api_key,
363
- :password => @api_token,
364
- :headers => {
365
- platformId: '35',
366
- platformVersion: VERSION
367
- }).execute
368
- rescue => e
369
- e.response
370
- end
371
-
372
- def deleteVideoEnrollment(userId, enrollmentId)
373
- return RestClient::Request.new(
374
- :method => :delete,
375
- :url => BASE_URL + 'enrollments/video/' + userId + '/' + enrollmentId.to_s + @notification_url,
376
- :user => @api_key,
377
- :password => @api_token,
378
- :headers => {
379
- platformId: '35',
380
- platformVersion: VERSION
381
- }).execute
382
-
383
- rescue => e
384
- e.response
385
- end
386
-
387
299
  def getAllGroups()
388
300
  return RestClient::Request.new(
389
301
  :method => :get,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: VoiceIt2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - StephenAkers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-05-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A wrapper for VoiceIt API 2
14
14
  email: stephen@voiceit.io