rev-api 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -1
- data/.gitignore +21 -21
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/.travis.yml +8 -8
- data/Gemfile +3 -3
- data/LICENSE +191 -191
- data/README.md +132 -132
- data/Rakefile +13 -13
- data/examples/cli.rb +270 -270
- data/lib/rev-api.rb +25 -25
- data/lib/rev-api/api.rb +326 -326
- data/lib/rev-api/api_serializable.rb +30 -30
- data/lib/rev-api/exceptions.rb +97 -100
- data/lib/rev-api/http_client.rb +97 -97
- data/lib/rev-api/models/order.rb +130 -138
- data/lib/rev-api/models/order_request.rb +194 -222
- data/lib/rev-api/version.rb +3 -3
- data/rev-api.gemspec +34 -34
- data/spec/fixtures/api_cassettes/cancel_order.yml +38 -38
- data/spec/fixtures/api_cassettes/cancel_order_not_allowed.yml +40 -40
- data/spec/fixtures/api_cassettes/get_attachment_content.yml +399 -399
- data/spec/fixtures/api_cassettes/get_attachment_content_as_pdf.yml +399 -399
- data/spec/fixtures/api_cassettes/get_attachment_content_as_text.yml +65 -65
- data/spec/fixtures/api_cassettes/get_attachment_content_as_youtube_transcript.yml +66 -66
- data/spec/fixtures/api_cassettes/get_attachment_content_unacceptable_representation.yml +42 -42
- data/spec/fixtures/api_cassettes/get_attachment_content_with_invalid_id.yml +42 -42
- data/spec/fixtures/api_cassettes/get_attachment_metadata.yml +42 -42
- data/spec/fixtures/api_cassettes/get_attachment_with_invalid_id.yml +40 -40
- data/spec/fixtures/api_cassettes/get_orders.yml +122 -122
- data/spec/fixtures/api_cassettes/get_orders_with_clientRef.yml +41 -41
- data/spec/fixtures/api_cassettes/get_tc_order.yml +44 -44
- data/spec/fixtures/api_cassettes/get_third_page_of_orders.yml +52 -58
- data/spec/fixtures/api_cassettes/link_input.yml +44 -44
- data/spec/fixtures/api_cassettes/link_input_with_all_attributes.yml +44 -44
- data/spec/fixtures/api_cassettes/link_input_with_spaces_in_filename.yml +45 -45
- data/spec/fixtures/api_cassettes/not_found_order.yml +42 -42
- data/spec/fixtures/api_cassettes/submit_cp_order.yml +45 -45
- data/spec/fixtures/api_cassettes/submit_su_order.yml +45 -45
- data/spec/fixtures/api_cassettes/submit_tc_order_with_account_balance.yml +45 -45
- data/spec/fixtures/api_cassettes/submit_tc_order_with_invalid_request.yml +45 -45
- data/spec/fixtures/api_cassettes/submit_tc_order_without_specifying_payment.yml +45 -45
- data/spec/fixtures/api_cassettes/unauthorized.yml +42 -42
- data/spec/fixtures/api_cassettes/upload_input.yml +90 -90
- data/spec/fixtures/api_cassettes/upload_input_with_invalid_content_type.yml +91 -91
- data/spec/lib/rev/api_spec.rb +24 -24
- data/spec/lib/rev/cancel_order_spec.rb +24 -24
- data/spec/lib/rev/exceptions_spec.rb +8 -8
- data/spec/lib/rev/get_attachment_content_spec.rb +79 -79
- data/spec/lib/rev/get_attachment_metadata_spec.rb +33 -33
- data/spec/lib/rev/get_order_spec.rb +52 -68
- data/spec/lib/rev/get_orders_spec.rb +62 -62
- data/spec/lib/rev/http_client_spec.rb +32 -32
- data/spec/lib/rev/models/order_request_spec.rb +0 -7
- data/spec/lib/rev/models/order_spec.rb +58 -58
- data/spec/lib/rev/post_inputs_spec.rb +94 -94
- data/spec/lib/rev/post_order_spec.rb +163 -195
- data/spec/spec_helper.rb +49 -49
- metadata +38 -41
- data/spec/fixtures/api_cassettes/get_tr_order.yml +0 -44
- data/spec/fixtures/api_cassettes/submit_tr_order.yml +0 -44
@@ -1,58 +1,52 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://www.revtrunk.com/api/v1/orders?page=2
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Authorization:
|
11
|
-
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
12
|
-
User-Agent:
|
13
|
-
- RevOfficialRubySDK/1.0.0
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message: OK
|
18
|
-
headers:
|
19
|
-
Cache-Control:
|
20
|
-
- no-cache
|
21
|
-
Pragma:
|
22
|
-
- no-cache
|
23
|
-
Content-Type:
|
24
|
-
- application/json; charset=utf-8
|
25
|
-
Expires:
|
26
|
-
- '-1'
|
27
|
-
Server:
|
28
|
-
- Microsoft-IIS/7.5
|
29
|
-
X-Miniprofiler-Ids:
|
30
|
-
- ! '["a20297a2-2287-448d-b420-b6ea8e95498f","a13bc5df-68de-4aaa-9114-eae8ca16e44f","d3eeb950-099b-447c-a3ec-74dd2af0fd81"]'
|
31
|
-
X-Powered-By:
|
32
|
-
- ASP.NET
|
33
|
-
Date:
|
34
|
-
- Wed, 11 Sep 2013 23:57:58 GMT
|
35
|
-
Content-Length:
|
36
|
-
- '4244'
|
37
|
-
body:
|
38
|
-
encoding: US-ASCII
|
39
|
-
string: ! '{"total_count":77,"results_per_page":8,"page":2,"orders":[{"order_number":"TC0229215557","price":99.0000,"status":"Finding
|
40
|
-
Transcriptionist","transcription":{"total_length_seconds":5940,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"230.mp4","id":"RY2pDXYAAAAAAAAA","audio_length_seconds":5520,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/RY2pDXYAAAAAAAAA/content"}]},{"kind":"media","name":"Interview#7_001.mp3","id":"RY2pDXcAAAAAAAAA","audio_length_seconds":420,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/RY2pDXcAAAAAAAAA/content"}]}]},{"order_number":"TC0308715466","price":13.0000,"status":"Finding
|
41
|
-
Transcriptionist","transcription":{"total_length_seconds":780,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"Kalimba.mp3","id":"yp9mEmwAAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/yp9mEmwAAAAAAAAA/content"}]},{"kind":"media","name":"Maid
|
42
|
-
with the Flaxen Hair.mp3","id":"yp9mEm0AAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/yp9mEm0AAAAAAAAA/content"}]},{"kind":"media","name":"Sleep
|
43
|
-
Away.mp3","id":"yp9mEm4AAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/yp9mEm4AAAAAAAAA/content"}]}]},{"order_number":"
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
tasks links.txt","id":"0QSSA2QAAAAAAAAA","word_count":0,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/0QSSA2QAAAAAAAAA/content"}]},{"kind":"media","name":"Example.docx","id":"0QSSA8QBAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/0QSSA8QBAAAAAAAA/content"}]},{"kind":"translation","name":"Example.pdf","id":"0QSSA8cBAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/0QSSA8cBAAAAAAAA/content"}]}]},{"order_number":"TR0008238459","price":66.0000,"status":"Finding
|
54
|
-
Reviewer","translation":{"total_word_count":0,"source_language_code":"ar","destination_language_code":"en"},"comments":[],"attachments":[{"kind":"media","name":"calculate
|
55
|
-
throughput only via completed jobs.sql","id":"e7V9AGMAAAAAAAAA","word_count":0,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/e7V9AGMAAAAAAAAA/content"}]}]}]}'
|
56
|
-
http_version:
|
57
|
-
recorded_at: Wed, 11 Sep 2013 23:57:57 GMT
|
58
|
-
recorded_with: VCR 2.5.0
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.revtrunk.com/api/v1/orders?page=2
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
12
|
+
User-Agent:
|
13
|
+
- RevOfficialRubySDK/1.0.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Cache-Control:
|
20
|
+
- no-cache
|
21
|
+
Pragma:
|
22
|
+
- no-cache
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Expires:
|
26
|
+
- '-1'
|
27
|
+
Server:
|
28
|
+
- Microsoft-IIS/7.5
|
29
|
+
X-Miniprofiler-Ids:
|
30
|
+
- ! '["a20297a2-2287-448d-b420-b6ea8e95498f","a13bc5df-68de-4aaa-9114-eae8ca16e44f","d3eeb950-099b-447c-a3ec-74dd2af0fd81"]'
|
31
|
+
X-Powered-By:
|
32
|
+
- ASP.NET
|
33
|
+
Date:
|
34
|
+
- Wed, 11 Sep 2013 23:57:58 GMT
|
35
|
+
Content-Length:
|
36
|
+
- '4244'
|
37
|
+
body:
|
38
|
+
encoding: US-ASCII
|
39
|
+
string: ! '{"total_count":77,"results_per_page":8,"page":2,"orders":[{"order_number":"TC0229215557","price":99.0000,"status":"Finding
|
40
|
+
Transcriptionist","transcription":{"total_length_seconds":5940,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"230.mp4","id":"RY2pDXYAAAAAAAAA","audio_length_seconds":5520,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/RY2pDXYAAAAAAAAA/content"}]},{"kind":"media","name":"Interview#7_001.mp3","id":"RY2pDXcAAAAAAAAA","audio_length_seconds":420,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/RY2pDXcAAAAAAAAA/content"}]}]},{"order_number":"TC0308715466","price":13.0000,"status":"Finding
|
41
|
+
Transcriptionist","transcription":{"total_length_seconds":780,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"Kalimba.mp3","id":"yp9mEmwAAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/yp9mEmwAAAAAAAAA/content"}]},{"kind":"media","name":"Maid
|
42
|
+
with the Flaxen Hair.mp3","id":"yp9mEm0AAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/yp9mEm0AAAAAAAAA/content"}]},{"kind":"media","name":"Sleep
|
43
|
+
Away.mp3","id":"yp9mEm4AAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/yp9mEm4AAAAAAAAA/content"}]}]},{"order_number":"TC0152334790","price":12.5000,"status":"Finding
|
44
|
+
Reviewer","transcription":{"total_length_seconds":600,"verbatim":false,"timestamps":false},"comments":[],"attachments":[]},{"order_number":"TC0374252143","price":20.0000,"status":"Transcribing","transcription":{"total_length_seconds":960,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"Sleep
|
45
|
+
Away.mp3","id":"b6JOFmgAAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/b6JOFmgAAAAAAAAA/content"}]},{"kind":"media","name":"async
|
46
|
+
tasks links.txt","id":"b6JOFmkAAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/b6JOFmkAAAAAAAAA/content"}]}]},{"order_number":"TC0380425256","client_ref":"#tooltips","price":49.5000,"status":"Finding
|
47
|
+
Transcriptionist","transcription":{"total_length_seconds":1980,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"calculate
|
48
|
+
throughput only via completed jobs.sql","id":"KNSsFmUAAAAAAAAA","audio_length_seconds":600,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/KNSsFmUAAAAAAAAA/content"}]},{"kind":"media","name":"calculate
|
49
|
+
whole wip report by completed jobs.sql","id":"KNSsFmYAAAAAAAAA","audio_length_seconds":1380,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/KNSsFmYAAAAAAAAA/content"}]}]}]}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Wed, 11 Sep 2013 23:57:57 GMT
|
52
|
+
recorded_with: VCR 2.5.0
|
@@ -1,44 +1,44 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://www.revtrunk.com/api/v1/inputs
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ! '{"url":"https://www.rev.com/content/img/rev/rev_logo_colored_top.png"}'
|
9
|
-
headers:
|
10
|
-
Content-Type:
|
11
|
-
- application/json
|
12
|
-
Authorization:
|
13
|
-
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
14
|
-
User-Agent:
|
15
|
-
- RevOfficialRubySDK/1.0.0
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 201
|
19
|
-
message: Created
|
20
|
-
headers:
|
21
|
-
Cache-Control:
|
22
|
-
- no-cache
|
23
|
-
Pragma:
|
24
|
-
- no-cache
|
25
|
-
Expires:
|
26
|
-
- '-1'
|
27
|
-
Location:
|
28
|
-
- urn:rev:inputmedia:UHVwbG9hZHMvMjAxMy0wOS0xNy82NGRhOWY4Ny0zYTNlLTQ3NDgtYmI4Yi05MmE3ZmVhMTJjYzcvcmV2X2xvZ29fY29sb3JlZF90b3AucG5n
|
29
|
-
Server:
|
30
|
-
- Microsoft-IIS/7.5
|
31
|
-
X-Miniprofiler-Ids:
|
32
|
-
- ! '["898ff908-ed7d-4ba9-a7d4-1ef77477b595"]'
|
33
|
-
X-Powered-By:
|
34
|
-
- ASP.NET
|
35
|
-
Date:
|
36
|
-
- Tue, 17 Sep 2013 21:08:38 GMT
|
37
|
-
Content-Length:
|
38
|
-
- '0'
|
39
|
-
body:
|
40
|
-
encoding: US-ASCII
|
41
|
-
string: ''
|
42
|
-
http_version:
|
43
|
-
recorded_at: Tue, 17 Sep 2013 21:08:37 GMT
|
44
|
-
recorded_with: VCR 2.5.0
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.revtrunk.com/api/v1/inputs
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"url":"https://www.rev.com/content/img/rev/rev_logo_colored_top.png"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
14
|
+
User-Agent:
|
15
|
+
- RevOfficialRubySDK/1.0.0
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message: Created
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-cache
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Expires:
|
26
|
+
- '-1'
|
27
|
+
Location:
|
28
|
+
- urn:rev:inputmedia:UHVwbG9hZHMvMjAxMy0wOS0xNy82NGRhOWY4Ny0zYTNlLTQ3NDgtYmI4Yi05MmE3ZmVhMTJjYzcvcmV2X2xvZ29fY29sb3JlZF90b3AucG5n
|
29
|
+
Server:
|
30
|
+
- Microsoft-IIS/7.5
|
31
|
+
X-Miniprofiler-Ids:
|
32
|
+
- ! '["898ff908-ed7d-4ba9-a7d4-1ef77477b595"]'
|
33
|
+
X-Powered-By:
|
34
|
+
- ASP.NET
|
35
|
+
Date:
|
36
|
+
- Tue, 17 Sep 2013 21:08:38 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '0'
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ''
|
42
|
+
http_version:
|
43
|
+
recorded_at: Tue, 17 Sep 2013 21:08:37 GMT
|
44
|
+
recorded_with: VCR 2.5.0
|
@@ -1,44 +1,44 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://www.revtrunk.com/api/v1/inputs
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ! '{"url":"https://www.rev.com/content/img/rev/rev_logo_colored_top.png","filename":"sourcedocument.png","content_type":"image/png"}'
|
9
|
-
headers:
|
10
|
-
Content-Type:
|
11
|
-
- application/json
|
12
|
-
Authorization:
|
13
|
-
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
14
|
-
User-Agent:
|
15
|
-
- RevOfficialRubySDK/1.0.0
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 201
|
19
|
-
message: Created
|
20
|
-
headers:
|
21
|
-
Cache-Control:
|
22
|
-
- no-cache
|
23
|
-
Pragma:
|
24
|
-
- no-cache
|
25
|
-
Expires:
|
26
|
-
- '-1'
|
27
|
-
Location:
|
28
|
-
- urn:rev:inputmedia:SnVwbG9hZHMvMjAxMy0wOS0xNy83MTZjOTAzNC1iMDkxLTRlYjgtOTAzMi1kNjU0NzMzNDJlZTcvc291cmNlZG9jdW1lbnQucG5n
|
29
|
-
Server:
|
30
|
-
- Microsoft-IIS/7.5
|
31
|
-
X-Miniprofiler-Ids:
|
32
|
-
- ! '["898ff908-ed7d-4ba9-a7d4-1ef77477b595","9fe829e6-5487-4079-bc96-5c95abf1cf80","e7f8c536-dacd-4a4e-a594-e1660295c0f5"]'
|
33
|
-
X-Powered-By:
|
34
|
-
- ASP.NET
|
35
|
-
Date:
|
36
|
-
- Tue, 17 Sep 2013 21:11:46 GMT
|
37
|
-
Content-Length:
|
38
|
-
- '0'
|
39
|
-
body:
|
40
|
-
encoding: US-ASCII
|
41
|
-
string: ''
|
42
|
-
http_version:
|
43
|
-
recorded_at: Tue, 17 Sep 2013 21:11:45 GMT
|
44
|
-
recorded_with: VCR 2.5.0
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.revtrunk.com/api/v1/inputs
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"url":"https://www.rev.com/content/img/rev/rev_logo_colored_top.png","filename":"sourcedocument.png","content_type":"image/png"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
14
|
+
User-Agent:
|
15
|
+
- RevOfficialRubySDK/1.0.0
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message: Created
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-cache
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Expires:
|
26
|
+
- '-1'
|
27
|
+
Location:
|
28
|
+
- urn:rev:inputmedia:SnVwbG9hZHMvMjAxMy0wOS0xNy83MTZjOTAzNC1iMDkxLTRlYjgtOTAzMi1kNjU0NzMzNDJlZTcvc291cmNlZG9jdW1lbnQucG5n
|
29
|
+
Server:
|
30
|
+
- Microsoft-IIS/7.5
|
31
|
+
X-Miniprofiler-Ids:
|
32
|
+
- ! '["898ff908-ed7d-4ba9-a7d4-1ef77477b595","9fe829e6-5487-4079-bc96-5c95abf1cf80","e7f8c536-dacd-4a4e-a594-e1660295c0f5"]'
|
33
|
+
X-Powered-By:
|
34
|
+
- ASP.NET
|
35
|
+
Date:
|
36
|
+
- Tue, 17 Sep 2013 21:11:46 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '0'
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ''
|
42
|
+
http_version:
|
43
|
+
recorded_at: Tue, 17 Sep 2013 21:11:45 GMT
|
44
|
+
recorded_with: VCR 2.5.0
|
@@ -1,45 +1,45 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://www.revtrunk.com/api/v1/inputs
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"url":"https://s3-us-west-2.amazonaws.com/public-rev/
|
9
|
-
|
10
|
-
headers:
|
11
|
-
Authorization:
|
12
|
-
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
13
|
-
User-Agent:
|
14
|
-
- RevOfficialRubySDK/2.1.0
|
15
|
-
Content-Type:
|
16
|
-
- application/json
|
17
|
-
response:
|
18
|
-
status:
|
19
|
-
code: 201
|
20
|
-
message: Created
|
21
|
-
headers:
|
22
|
-
Cache-Control:
|
23
|
-
- no-cache
|
24
|
-
Pragma:
|
25
|
-
- no-cache
|
26
|
-
Expires:
|
27
|
-
- '-1'
|
28
|
-
Location:
|
29
|
-
- urn:rev:inputmedia:YHVwbG9hZHMvMjAxNS0xMC0yMC80ZTlkNmFhZS02YmNhLTQzY2MtOTViNy1lM2E0MmNhNmQwMmQvUmV2IENlcnRpZmllZCBUZW1wbGF0ZSAoMjAxNC0wNi0xMSkuZG9jeA==
|
30
|
-
Server:
|
31
|
-
- Microsoft-IIS/8.5
|
32
|
-
X-Miniprofiler-Ids:
|
33
|
-
- '["a40c8bab-d6ad-4e2f-b277-d5691885e974"]'
|
34
|
-
X-Powered-By:
|
35
|
-
- ASP.NET
|
36
|
-
Date:
|
37
|
-
- Tue, 20 Oct 2015 21:48:24 GMT
|
38
|
-
Content-Length:
|
39
|
-
- '0'
|
40
|
-
body:
|
41
|
-
encoding: UTF-8
|
42
|
-
string: ''
|
43
|
-
http_version:
|
44
|
-
recorded_at: Tue, 20 Oct 2015 21:48:23 GMT
|
45
|
-
recorded_with: VCR 2.6.0
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.revtrunk.com/api/v1/inputs
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"url":"https://s3-us-west-2.amazonaws.com/public-rev/transcript/Rev
|
9
|
+
Transcript File.docx","filename":"Rev Transcript File.docx","content_type":"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}'
|
10
|
+
headers:
|
11
|
+
Authorization:
|
12
|
+
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
13
|
+
User-Agent:
|
14
|
+
- RevOfficialRubySDK/2.1.0
|
15
|
+
Content-Type:
|
16
|
+
- application/json
|
17
|
+
response:
|
18
|
+
status:
|
19
|
+
code: 201
|
20
|
+
message: Created
|
21
|
+
headers:
|
22
|
+
Cache-Control:
|
23
|
+
- no-cache
|
24
|
+
Pragma:
|
25
|
+
- no-cache
|
26
|
+
Expires:
|
27
|
+
- '-1'
|
28
|
+
Location:
|
29
|
+
- urn:rev:inputmedia:YHVwbG9hZHMvMjAxNS0xMC0yMC80ZTlkNmFhZS02YmNhLTQzY2MtOTViNy1lM2E0MmNhNmQwMmQvUmV2IENlcnRpZmllZCBUZW1wbGF0ZSAoMjAxNC0wNi0xMSkuZG9jeA==
|
30
|
+
Server:
|
31
|
+
- Microsoft-IIS/8.5
|
32
|
+
X-Miniprofiler-Ids:
|
33
|
+
- '["a40c8bab-d6ad-4e2f-b277-d5691885e974"]'
|
34
|
+
X-Powered-By:
|
35
|
+
- ASP.NET
|
36
|
+
Date:
|
37
|
+
- Tue, 20 Oct 2015 21:48:24 GMT
|
38
|
+
Content-Length:
|
39
|
+
- '0'
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: ''
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 20 Oct 2015 21:48:23 GMT
|
45
|
+
recorded_with: VCR 2.6.0
|
@@ -1,42 +1,42 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://www.revtrunk.com/api/v1/orders/trololo
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Authorization:
|
11
|
-
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
12
|
-
User-Agent:
|
13
|
-
- RevOfficialRubySDK/1.0.0
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 404
|
17
|
-
message: Not Found
|
18
|
-
headers:
|
19
|
-
Cache-Control:
|
20
|
-
- no-cache
|
21
|
-
Pragma:
|
22
|
-
- no-cache
|
23
|
-
Content-Type:
|
24
|
-
- application/json; charset=utf-8
|
25
|
-
Expires:
|
26
|
-
- '-1'
|
27
|
-
Server:
|
28
|
-
- Microsoft-IIS/7.5
|
29
|
-
X-Miniprofiler-Ids:
|
30
|
-
- ! '["c3edfc94-52a6-4d51-956a-eb9d87622029"]'
|
31
|
-
X-Powered-By:
|
32
|
-
- ASP.NET
|
33
|
-
Date:
|
34
|
-
- Wed, 11 Sep 2013 22:59:19 GMT
|
35
|
-
Content-Length:
|
36
|
-
- '11'
|
37
|
-
body:
|
38
|
-
encoding: US-ASCII
|
39
|
-
string: ! '"Not Found"'
|
40
|
-
http_version:
|
41
|
-
recorded_at: Wed, 11 Sep 2013 22:59:19 GMT
|
42
|
-
recorded_with: VCR 2.5.0
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.revtrunk.com/api/v1/orders/trololo
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
|
12
|
+
User-Agent:
|
13
|
+
- RevOfficialRubySDK/1.0.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 404
|
17
|
+
message: Not Found
|
18
|
+
headers:
|
19
|
+
Cache-Control:
|
20
|
+
- no-cache
|
21
|
+
Pragma:
|
22
|
+
- no-cache
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Expires:
|
26
|
+
- '-1'
|
27
|
+
Server:
|
28
|
+
- Microsoft-IIS/7.5
|
29
|
+
X-Miniprofiler-Ids:
|
30
|
+
- ! '["c3edfc94-52a6-4d51-956a-eb9d87622029"]'
|
31
|
+
X-Powered-By:
|
32
|
+
- ASP.NET
|
33
|
+
Date:
|
34
|
+
- Wed, 11 Sep 2013 22:59:19 GMT
|
35
|
+
Content-Length:
|
36
|
+
- '11'
|
37
|
+
body:
|
38
|
+
encoding: US-ASCII
|
39
|
+
string: ! '"Not Found"'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Wed, 11 Sep 2013 22:59:19 GMT
|
42
|
+
recorded_with: VCR 2.5.0
|