transcribeme 0.0.5.beta → 1.0.0.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +2 -1
- data/.rubocop.yml +22 -0
- data/.travis.yml +8 -0
- data/Gemfile +7 -2
- data/Guardfile +35 -0
- data/README.md +36 -7
- data/Rakefile +4 -4
- data/lib/transcribeme.rb +4 -36
- data/lib/transcribeme/api/client.rb +184 -34
- data/lib/transcribeme/version.rb +2 -1
- data/spec/lib/api/client_spec.rb +133 -5
- data/spec/spec_helper.rb +1 -1
- data/spec/support/audio/yes-we-can-speech.mp3 +0 -0
- data/spec/support/cassettes/list_of_recordings.yml +212 -0
- data/spec/support/cassettes/new_session.yml +19 -26
- data/spec/support/cassettes/successful_sign_in.yml +245 -0
- data/spec/support/cassettes/successful_sign_in_after_initialize_call.yml +244 -0
- data/spec/support/cassettes/unsuccessful_sign_in.yml +167 -0
- data/spec/support/cassettes/upload_url.yml +208 -0
- data/transcribeme.gemspec +15 -13
- metadata +52 -27
- metadata.gz.sig +0 -0
- data/lib/transcribeme/api/check_transcription_ready.rb +0 -29
- data/lib/transcribeme/api/customer_login.rb +0 -33
- data/lib/transcribeme/api/finalize_session.rb +0 -30
- data/lib/transcribeme/api/recordings.rb +0 -32
- data/lib/transcribeme/api/session.rb +0 -37
- data/lib/transcribeme/api/submission.rb +0 -31
- data/lib/transcribeme/api/submission_with_promocode.rb +0 -32
- data/lib/transcribeme/api/upload_url.rb +0 -30
- data/lib/transcribeme/customer.rb +0 -5
- data/lib/transcribeme/recording.rb +0 -5
- data/lib/transcribeme/transcription.rb +0 -5
@@ -0,0 +1,167 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://transcribeme-api.cloudapp.net/PortalAPI.svc?wsdl=wsdl0
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- private
|
17
|
+
Content-Type:
|
18
|
+
- text/xml; charset=UTF-8
|
19
|
+
Server:
|
20
|
+
- Microsoft-IIS/7.0
|
21
|
+
X-Aspnet-Version:
|
22
|
+
- 4.0.30319
|
23
|
+
X-Powered-By:
|
24
|
+
- ASP.NET
|
25
|
+
Date:
|
26
|
+
- Mon, 26 Aug 2013 01:09:18 GMT
|
27
|
+
Content-Length:
|
28
|
+
- '4961'
|
29
|
+
Connection:
|
30
|
+
- Keep-Alive
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: <?xml version="1.0" encoding="utf-8"?><wsdl:definitions targetNamespace="http://tempuri.org/"
|
34
|
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
|
35
|
+
xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/"
|
36
|
+
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
|
37
|
+
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
|
38
|
+
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
39
|
+
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
|
40
|
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:i0="http://TranscribeMe.API.Web"
|
41
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><wsdl:import
|
42
|
+
namespace="http://TranscribeMe.API.Web" location="http://transcribeme-api.cloudapp.net/PortalAPI.svc?wsdl"/><wsdl:types/><wsdl:binding
|
43
|
+
name="BasicHttpBinding_IPortalAPI" type="i0:IPortalAPI"><soap:binding transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation
|
44
|
+
name="InitializeSession"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/InitializeSession"
|
45
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
46
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="SignUp"><soap:operation
|
47
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/SignUp" style="document"/><wsdl:input><soap:body
|
48
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
49
|
+
name="SignIn"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/SignIn"
|
50
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
51
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetUploadUrl"><soap:operation
|
52
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetUploadUrl" style="document"/><wsdl:input><soap:body
|
53
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
54
|
+
name="CommitUpload"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/CommitUpload"
|
55
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
56
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="TranscribeRecording"><soap:operation
|
57
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/TranscribeRecording" style="document"/><wsdl:input><soap:body
|
58
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
59
|
+
name="GetRecordingInfo"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetRecordingInfo"
|
60
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
61
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetCustomerRecordings"><soap:operation
|
62
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetCustomerRecordings"
|
63
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
64
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="FinalizeSession"><soap:operation
|
65
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/FinalizeSession" style="document"/><wsdl:input><soap:body
|
66
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
67
|
+
name="GetTranscription"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetTranscription"
|
68
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
69
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetTranscriptionLink"><soap:operation
|
70
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetTranscriptionLink" style="document"/><wsdl:input><soap:body
|
71
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
72
|
+
name="TranscribeUsingPromoCode"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/TranscribeUsingPromoCode"
|
73
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
74
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="ResetPassword"><soap:operation
|
75
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/ResetPassword" style="document"/><wsdl:input><soap:body
|
76
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
77
|
+
name="GetCustomerInfo"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetCustomerInfo"
|
78
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
79
|
+
use="literal"/></wsdl:output></wsdl:operation></wsdl:binding></wsdl:definitions>
|
80
|
+
http_version:
|
81
|
+
recorded_at: Mon, 26 Aug 2013 01:09:24 GMT
|
82
|
+
- request:
|
83
|
+
method: post
|
84
|
+
uri: http://transcribeme-api.cloudapp.net/PortalAPI.svc
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
88
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://TranscribeMe.API.Web"
|
89
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><wsdl:InitializeSession></wsdl:InitializeSession></env:Body></env:Envelope>
|
90
|
+
headers:
|
91
|
+
Soapaction:
|
92
|
+
- '"http://TranscribeMe.API.Web/IPortalAPI/InitializeSession"'
|
93
|
+
Content-Type:
|
94
|
+
- text/xml;charset=UTF-8
|
95
|
+
Content-Length:
|
96
|
+
- '331'
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 200
|
100
|
+
message: OK
|
101
|
+
headers:
|
102
|
+
Cache-Control:
|
103
|
+
- private
|
104
|
+
Content-Type:
|
105
|
+
- text/xml; charset=utf-8
|
106
|
+
Server:
|
107
|
+
- Microsoft-IIS/7.0
|
108
|
+
X-Aspnet-Version:
|
109
|
+
- 4.0.30319
|
110
|
+
X-Powered-By:
|
111
|
+
- ASP.NET
|
112
|
+
Date:
|
113
|
+
- Mon, 26 Aug 2013 01:09:19 GMT
|
114
|
+
Content-Length:
|
115
|
+
- '272'
|
116
|
+
Connection:
|
117
|
+
- Keep-Alive
|
118
|
+
body:
|
119
|
+
encoding: UTF-8
|
120
|
+
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><InitializeSessionResponse
|
121
|
+
xmlns="http://TranscribeMe.API.Web"><InitializeSessionResult>1a1f69a5-0e0b-482e-906c-f4d074124288</InitializeSessionResult></InitializeSessionResponse></s:Body></s:Envelope>
|
122
|
+
http_version:
|
123
|
+
recorded_at: Mon, 26 Aug 2013 01:09:25 GMT
|
124
|
+
- request:
|
125
|
+
method: post
|
126
|
+
uri: http://transcribeme-api.cloudapp.net/PortalAPI.svc
|
127
|
+
body:
|
128
|
+
encoding: UTF-8
|
129
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
130
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://TranscribeMe.API.Web"
|
131
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><wsdl:SignIn><wsdl:sessionID>1a1f69a5-0e0b-482e-906c-f4d074124288</wsdl:sessionID><wsdl:username>invalid_example@transcribeme.com</wsdl:username><wsdl:password>invalid_example</wsdl:password></wsdl:SignIn></env:Body></env:Envelope>
|
132
|
+
headers:
|
133
|
+
Soapaction:
|
134
|
+
- '"http://TranscribeMe.API.Web/IPortalAPI/SignIn"'
|
135
|
+
Content-Type:
|
136
|
+
- text/xml;charset=UTF-8
|
137
|
+
Content-Length:
|
138
|
+
- '471'
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message: OK
|
143
|
+
headers:
|
144
|
+
Cache-Control:
|
145
|
+
- private
|
146
|
+
Content-Type:
|
147
|
+
- text/xml; charset=utf-8
|
148
|
+
Server:
|
149
|
+
- Microsoft-IIS/7.0
|
150
|
+
X-Aspnet-Version:
|
151
|
+
- 4.0.30319
|
152
|
+
X-Powered-By:
|
153
|
+
- ASP.NET
|
154
|
+
Date:
|
155
|
+
- Mon, 26 Aug 2013 01:09:20 GMT
|
156
|
+
Content-Length:
|
157
|
+
- '368'
|
158
|
+
Connection:
|
159
|
+
- Keep-Alive
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><SignInResponse
|
163
|
+
xmlns="http://TranscribeMe.API.Web"><SignInResult>00000000-0000-0000-0000-000000000000</SignInResult><errorCode>204</errorCode><errorMessage>Provided
|
164
|
+
credentials are invalid. Please check your login and password and try again.</errorMessage></SignInResponse></s:Body></s:Envelope>
|
165
|
+
http_version:
|
166
|
+
recorded_at: Mon, 26 Aug 2013 01:09:27 GMT
|
167
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,208 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://transcribeme-api.cloudapp.net/PortalAPI.svc?wsdl=wsdl0
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Cache-Control:
|
16
|
+
- private
|
17
|
+
Content-Type:
|
18
|
+
- text/xml; charset=UTF-8
|
19
|
+
Server:
|
20
|
+
- Microsoft-IIS/7.0
|
21
|
+
X-Aspnet-Version:
|
22
|
+
- 4.0.30319
|
23
|
+
X-Powered-By:
|
24
|
+
- ASP.NET
|
25
|
+
Date:
|
26
|
+
- Mon, 26 Aug 2013 03:48:17 GMT
|
27
|
+
Content-Length:
|
28
|
+
- '4961'
|
29
|
+
Connection:
|
30
|
+
- Keep-Alive
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: <?xml version="1.0" encoding="utf-8"?><wsdl:definitions targetNamespace="http://tempuri.org/"
|
34
|
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
|
35
|
+
xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/"
|
36
|
+
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
|
37
|
+
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
|
38
|
+
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
39
|
+
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
|
40
|
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:i0="http://TranscribeMe.API.Web"
|
41
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><wsdl:import
|
42
|
+
namespace="http://TranscribeMe.API.Web" location="http://transcribeme-api.cloudapp.net/PortalAPI.svc?wsdl"/><wsdl:types/><wsdl:binding
|
43
|
+
name="BasicHttpBinding_IPortalAPI" type="i0:IPortalAPI"><soap:binding transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation
|
44
|
+
name="InitializeSession"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/InitializeSession"
|
45
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
46
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="SignUp"><soap:operation
|
47
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/SignUp" style="document"/><wsdl:input><soap:body
|
48
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
49
|
+
name="SignIn"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/SignIn"
|
50
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
51
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetUploadUrl"><soap:operation
|
52
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetUploadUrl" style="document"/><wsdl:input><soap:body
|
53
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
54
|
+
name="CommitUpload"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/CommitUpload"
|
55
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
56
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="TranscribeRecording"><soap:operation
|
57
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/TranscribeRecording" style="document"/><wsdl:input><soap:body
|
58
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
59
|
+
name="GetRecordingInfo"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetRecordingInfo"
|
60
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
61
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetCustomerRecordings"><soap:operation
|
62
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetCustomerRecordings"
|
63
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
64
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="FinalizeSession"><soap:operation
|
65
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/FinalizeSession" style="document"/><wsdl:input><soap:body
|
66
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
67
|
+
name="GetTranscription"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetTranscription"
|
68
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
69
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="GetTranscriptionLink"><soap:operation
|
70
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetTranscriptionLink" style="document"/><wsdl:input><soap:body
|
71
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
72
|
+
name="TranscribeUsingPromoCode"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/TranscribeUsingPromoCode"
|
73
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
74
|
+
use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="ResetPassword"><soap:operation
|
75
|
+
soapAction="http://TranscribeMe.API.Web/IPortalAPI/ResetPassword" style="document"/><wsdl:input><soap:body
|
76
|
+
use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation
|
77
|
+
name="GetCustomerInfo"><soap:operation soapAction="http://TranscribeMe.API.Web/IPortalAPI/GetCustomerInfo"
|
78
|
+
style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body
|
79
|
+
use="literal"/></wsdl:output></wsdl:operation></wsdl:binding></wsdl:definitions>
|
80
|
+
http_version:
|
81
|
+
recorded_at: Mon, 26 Aug 2013 03:48:26 GMT
|
82
|
+
- request:
|
83
|
+
method: post
|
84
|
+
uri: http://transcribeme-api.cloudapp.net/PortalAPI.svc
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
88
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://TranscribeMe.API.Web"
|
89
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><wsdl:InitializeSession></wsdl:InitializeSession></env:Body></env:Envelope>
|
90
|
+
headers:
|
91
|
+
Soapaction:
|
92
|
+
- '"http://TranscribeMe.API.Web/IPortalAPI/InitializeSession"'
|
93
|
+
Content-Type:
|
94
|
+
- text/xml;charset=UTF-8
|
95
|
+
Content-Length:
|
96
|
+
- '331'
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 200
|
100
|
+
message: OK
|
101
|
+
headers:
|
102
|
+
Cache-Control:
|
103
|
+
- private
|
104
|
+
Content-Type:
|
105
|
+
- text/xml; charset=utf-8
|
106
|
+
Server:
|
107
|
+
- Microsoft-IIS/7.0
|
108
|
+
X-Aspnet-Version:
|
109
|
+
- 4.0.30319
|
110
|
+
X-Powered-By:
|
111
|
+
- ASP.NET
|
112
|
+
Date:
|
113
|
+
- Mon, 26 Aug 2013 03:48:18 GMT
|
114
|
+
Content-Length:
|
115
|
+
- '272'
|
116
|
+
Connection:
|
117
|
+
- Keep-Alive
|
118
|
+
body:
|
119
|
+
encoding: UTF-8
|
120
|
+
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><InitializeSessionResponse
|
121
|
+
xmlns="http://TranscribeMe.API.Web"><InitializeSessionResult>0ed34923-3ec4-48a9-84ba-ba986c95c3cc</InitializeSessionResult></InitializeSessionResponse></s:Body></s:Envelope>
|
122
|
+
http_version:
|
123
|
+
recorded_at: Mon, 26 Aug 2013 03:48:27 GMT
|
124
|
+
- request:
|
125
|
+
method: post
|
126
|
+
uri: http://transcribeme-api.cloudapp.net/PortalAPI.svc
|
127
|
+
body:
|
128
|
+
encoding: UTF-8
|
129
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
130
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://TranscribeMe.API.Web"
|
131
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><wsdl:SignIn><wsdl:sessionID>0ed34923-3ec4-48a9-84ba-ba986c95c3cc</wsdl:sessionID><wsdl:username>example@transcribeme.com</wsdl:username><wsdl:password>example</wsdl:password></wsdl:SignIn></env:Body></env:Envelope>
|
132
|
+
headers:
|
133
|
+
Soapaction:
|
134
|
+
- '"http://TranscribeMe.API.Web/IPortalAPI/SignIn"'
|
135
|
+
Content-Type:
|
136
|
+
- text/xml;charset=UTF-8
|
137
|
+
Content-Length:
|
138
|
+
- '480'
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message: OK
|
143
|
+
headers:
|
144
|
+
Cache-Control:
|
145
|
+
- private
|
146
|
+
Content-Type:
|
147
|
+
- text/xml; charset=utf-8
|
148
|
+
Server:
|
149
|
+
- Microsoft-IIS/7.0
|
150
|
+
X-Aspnet-Version:
|
151
|
+
- 4.0.30319
|
152
|
+
X-Powered-By:
|
153
|
+
- ASP.NET
|
154
|
+
Date:
|
155
|
+
- Mon, 26 Aug 2013 03:48:19 GMT
|
156
|
+
Content-Length:
|
157
|
+
- '267'
|
158
|
+
Connection:
|
159
|
+
- Keep-Alive
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><SignInResponse
|
163
|
+
xmlns="http://TranscribeMe.API.Web"><SignInResult>4269e72a-cad8-4857-a61c-c43d3d9f2867</SignInResult><errorCode>0</errorCode><errorMessage/></SignInResponse></s:Body></s:Envelope>
|
164
|
+
http_version:
|
165
|
+
recorded_at: Mon, 26 Aug 2013 03:48:29 GMT
|
166
|
+
- request:
|
167
|
+
method: post
|
168
|
+
uri: http://transcribeme-api.cloudapp.net/PortalAPI.svc
|
169
|
+
body:
|
170
|
+
encoding: UTF-8
|
171
|
+
string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
172
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://TranscribeMe.API.Web"
|
173
|
+
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><wsdl:GetUploadUrl><wsdl:sessionID>0ed34923-3ec4-48a9-84ba-ba986c95c3cc</wsdl:sessionID></wsdl:GetUploadUrl></env:Body></env:Envelope>
|
174
|
+
headers:
|
175
|
+
Soapaction:
|
176
|
+
- '"http://TranscribeMe.API.Web/IPortalAPI/GetUploadUrl"'
|
177
|
+
Content-Type:
|
178
|
+
- text/xml;charset=UTF-8
|
179
|
+
Content-Length:
|
180
|
+
- '390'
|
181
|
+
response:
|
182
|
+
status:
|
183
|
+
code: 200
|
184
|
+
message: OK
|
185
|
+
headers:
|
186
|
+
Cache-Control:
|
187
|
+
- private
|
188
|
+
Content-Type:
|
189
|
+
- text/xml; charset=utf-8
|
190
|
+
Server:
|
191
|
+
- Microsoft-IIS/7.0
|
192
|
+
X-Aspnet-Version:
|
193
|
+
- 4.0.30319
|
194
|
+
X-Powered-By:
|
195
|
+
- ASP.NET
|
196
|
+
Date:
|
197
|
+
- Mon, 26 Aug 2013 03:48:20 GMT
|
198
|
+
Content-Length:
|
199
|
+
- '479'
|
200
|
+
Connection:
|
201
|
+
- Keep-Alive
|
202
|
+
body:
|
203
|
+
encoding: UTF-8
|
204
|
+
string: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><GetUploadUrlResponse
|
205
|
+
xmlns="http://TranscribeMe.API.Web"><GetUploadUrlResult>https://transcribeme.blob.core.windows.net/recordings/ca5736ab-31f7-4feb-b940-7ec7543dd45a?st=2013-08-26T03%3A43%3A20Z&se=2013-08-26T04%3A43%3A20Z&sr=b&sp=rw&sig=XVF98sq19SlJ5hopmny1HEKYodq0xODdjoJCacp9xOU%3D</GetUploadUrlResult><errorCode>0</errorCode><errorMessage/></GetUploadUrlResponse></s:Body></s:Envelope>
|
206
|
+
http_version:
|
207
|
+
recorded_at: Mon, 26 Aug 2013 03:48:30 GMT
|
208
|
+
recorded_with: VCR 2.5.0
|
data/transcribeme.gemspec
CHANGED
@@ -4,27 +4,29 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'transcribeme/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'transcribeme'
|
8
8
|
spec.version = TranscribeMe::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Tuttinator']
|
10
|
+
spec.email = ['caleb@prettymint.co.nz']
|
11
11
|
spec.description = %q{This gem is a Ruby wrapper for the TranscribeMe SOAP API, built on Savon}
|
12
12
|
spec.summary = %q{Ruby wrapper around the TranscribeMe SOAP API}
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
13
|
+
spec.homepage = 'http://tuttinator.github.io/transcribeme/'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'savon', '~> 2.2'
|
22
|
+
spec.add_runtime_dependency 'excon', '~> 0.25.3'
|
23
|
+
spec.add_runtime_dependency 'streamio-ffmpeg', '~> 1.0.0'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
26
|
+
spec.add_development_dependency 'rake'
|
27
|
+
spec.add_development_dependency 'yard'
|
28
|
+
spec.add_development_dependency 'rspec'
|
29
|
+
spec.add_development_dependency 'vcr'
|
30
|
+
spec.add_development_dependency 'webmock'
|
22
31
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
-
spec.add_development_dependency "rake"
|
25
|
-
spec.add_development_dependency "yard"
|
26
|
-
spec.add_development_dependency "rspec"
|
27
|
-
spec.add_development_dependency "vcr"
|
28
|
-
spec.add_development_dependency "webmock"
|
29
|
-
spec.add_development_dependency "coveralls"
|
30
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transcribeme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 1.0.0.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tuttinator
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
/qqRTsuOOmPoaNtB4XnGMXyHOzOhAvurliPCtBFlkWAH0RvDt29O9ZcwRhInvr83
|
32
32
|
S4meqecZ62/XH48iGccggmMPiTi8zQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2013-
|
34
|
+
date: 2013-09-01 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: savon
|
@@ -48,35 +48,49 @@ dependencies:
|
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '2.2'
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
|
-
name:
|
51
|
+
name: excon
|
52
52
|
requirement: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - ~>
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
57
|
-
type: :
|
56
|
+
version: 0.25.3
|
57
|
+
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ~>
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
63
|
+
version: 0.25.3
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
|
-
name:
|
65
|
+
name: streamio-ffmpeg
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - ~>
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
70
|
+
version: 1.0.0
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.0.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: bundler
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ~>
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '1.3'
|
71
85
|
type: :development
|
72
86
|
prerelease: false
|
73
87
|
version_requirements: !ruby/object:Gem::Requirement
|
74
88
|
requirements:
|
75
|
-
- -
|
89
|
+
- - ~>
|
76
90
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
91
|
+
version: '1.3'
|
78
92
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
93
|
+
name: rake
|
80
94
|
requirement: !ruby/object:Gem::Requirement
|
81
95
|
requirements:
|
82
96
|
- - '>='
|
@@ -90,7 +104,7 @@ dependencies:
|
|
90
104
|
- !ruby/object:Gem::Version
|
91
105
|
version: '0'
|
92
106
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
107
|
+
name: yard
|
94
108
|
requirement: !ruby/object:Gem::Requirement
|
95
109
|
requirements:
|
96
110
|
- - '>='
|
@@ -104,7 +118,7 @@ dependencies:
|
|
104
118
|
- !ruby/object:Gem::Version
|
105
119
|
version: '0'
|
106
120
|
- !ruby/object:Gem::Dependency
|
107
|
-
name:
|
121
|
+
name: rspec
|
108
122
|
requirement: !ruby/object:Gem::Requirement
|
109
123
|
requirements:
|
110
124
|
- - '>='
|
@@ -118,7 +132,7 @@ dependencies:
|
|
118
132
|
- !ruby/object:Gem::Version
|
119
133
|
version: '0'
|
120
134
|
- !ruby/object:Gem::Dependency
|
121
|
-
name:
|
135
|
+
name: vcr
|
122
136
|
requirement: !ruby/object:Gem::Requirement
|
123
137
|
requirements:
|
124
138
|
- - '>='
|
@@ -132,7 +146,7 @@ dependencies:
|
|
132
146
|
- !ruby/object:Gem::Version
|
133
147
|
version: '0'
|
134
148
|
- !ruby/object:Gem::Dependency
|
135
|
-
name:
|
149
|
+
name: webmock
|
136
150
|
requirement: !ruby/object:Gem::Requirement
|
137
151
|
requirements:
|
138
152
|
- - '>='
|
@@ -155,28 +169,33 @@ files:
|
|
155
169
|
- .coveralls.yml
|
156
170
|
- .gitignore
|
157
171
|
- .rspec
|
172
|
+
- .rubocop.yml
|
173
|
+
- .travis.yml
|
158
174
|
- Gemfile
|
175
|
+
- Gemfile.lock
|
176
|
+
- Guardfile
|
159
177
|
- LICENSE.txt
|
160
178
|
- README.md
|
161
179
|
- Rakefile
|
162
180
|
- USAGE.md
|
163
181
|
- lib/transcribeme.rb
|
164
|
-
- lib/transcribeme/api/check_transcription_ready.rb
|
165
182
|
- lib/transcribeme/api/client.rb
|
166
|
-
- lib/transcribeme/api/customer_login.rb
|
167
|
-
- lib/transcribeme/api/finalize_session.rb
|
168
|
-
- lib/transcribeme/api/recordings.rb
|
169
|
-
- lib/transcribeme/api/session.rb
|
170
|
-
- lib/transcribeme/api/submission.rb
|
171
|
-
- lib/transcribeme/api/submission_with_promocode.rb
|
172
|
-
- lib/transcribeme/api/upload_url.rb
|
173
|
-
- lib/transcribeme/customer.rb
|
174
|
-
- lib/transcribeme/recording.rb
|
175
|
-
- lib/transcribeme/transcription.rb
|
176
183
|
- lib/transcribeme/version.rb
|
184
|
+
- pkg/transcribeme-0.0.1.gem
|
185
|
+
- pkg/transcribeme-0.0.2.beta.gem
|
186
|
+
- pkg/transcribeme-0.0.2.pre.gem
|
187
|
+
- pkg/transcribeme-0.0.3.alpha1.gem
|
188
|
+
- pkg/transcribeme-0.0.4.beta1.gem
|
189
|
+
- pkg/transcribeme-0.0.5.beta.gem
|
177
190
|
- spec/lib/api/client_spec.rb
|
178
191
|
- spec/spec_helper.rb
|
192
|
+
- spec/support/audio/yes-we-can-speech.mp3
|
193
|
+
- spec/support/cassettes/list_of_recordings.yml
|
179
194
|
- spec/support/cassettes/new_session.yml
|
195
|
+
- spec/support/cassettes/successful_sign_in.yml
|
196
|
+
- spec/support/cassettes/successful_sign_in_after_initialize_call.yml
|
197
|
+
- spec/support/cassettes/unsuccessful_sign_in.yml
|
198
|
+
- spec/support/cassettes/upload_url.yml
|
180
199
|
- transcribeme.gemspec
|
181
200
|
homepage: http://tuttinator.github.io/transcribeme/
|
182
201
|
licenses:
|
@@ -205,5 +224,11 @@ summary: Ruby wrapper around the TranscribeMe SOAP API
|
|
205
224
|
test_files:
|
206
225
|
- spec/lib/api/client_spec.rb
|
207
226
|
- spec/spec_helper.rb
|
227
|
+
- spec/support/audio/yes-we-can-speech.mp3
|
228
|
+
- spec/support/cassettes/list_of_recordings.yml
|
208
229
|
- spec/support/cassettes/new_session.yml
|
230
|
+
- spec/support/cassettes/successful_sign_in.yml
|
231
|
+
- spec/support/cassettes/successful_sign_in_after_initialize_call.yml
|
232
|
+
- spec/support/cassettes/unsuccessful_sign_in.yml
|
233
|
+
- spec/support/cassettes/upload_url.yml
|
209
234
|
has_rdoc:
|