VoiceIt2 3.5.0 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VoiceIt2.rb +15 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 487e1b81faba95b374b437a23aa1d186a617d6e3b2abe6b5e98638d6be988907
|
4
|
+
data.tar.gz: d5bd2751d68c50a536ef5819867cc65c6ed23151b45556809cb5641ad6031088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c096ed18d8ad77c8e1175fd3669463edd628fc327c22ef18531a74ddf3d6e55ac45f3d16df1db1ae291ca540f629217cdb52b050f2d248e9b2d0f3eede19ea
|
7
|
+
data.tar.gz: 76cc28e5273fe79085e1559d04a8804a1eab3f72366b9e323e0adbb095c08825013f70d7a55fdc9501b75fb751fdb3fef4be922f5569bc828e6bc551c226a79e
|
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.
|
9
|
+
VERSION = '3.6.0'
|
10
10
|
|
11
11
|
def initialize(key, tok)
|
12
12
|
@notification_url = ""
|
@@ -105,6 +105,20 @@ class VoiceIt2
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
+
def switchSubAccountType(subAccountAPIKey)
|
109
|
+
return RestClient::Request.new(
|
110
|
+
:method => :post,
|
111
|
+
:url => BASE_URL + 'subaccount/' + subAccountAPIKey + '/switchType' + @notification_url,
|
112
|
+
:user => @api_key,
|
113
|
+
:password => @api_token,
|
114
|
+
:headers => {
|
115
|
+
platformId: '35',
|
116
|
+
platformVersion: VERSION
|
117
|
+
}).execute
|
118
|
+
rescue => e
|
119
|
+
e.response
|
120
|
+
end
|
121
|
+
|
108
122
|
def createUnmanagedSubAccount(firstName, lastName, email, password, contentLanguage)
|
109
123
|
return RestClient::Request.new(
|
110
124
|
:method => :post,
|
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.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StephenAkers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A wrapper for VoiceIt API 2
|
14
14
|
email: stephen@voiceit.io
|