rev-api 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -1
  3. data/.gitignore +21 -21
  4. data/.ruby-gemset +1 -1
  5. data/.ruby-version +1 -1
  6. data/.travis.yml +8 -8
  7. data/Gemfile +3 -3
  8. data/LICENSE +191 -191
  9. data/README.md +132 -132
  10. data/Rakefile +13 -13
  11. data/examples/cli.rb +270 -270
  12. data/lib/rev-api.rb +25 -25
  13. data/lib/rev-api/api.rb +326 -326
  14. data/lib/rev-api/api_serializable.rb +30 -30
  15. data/lib/rev-api/exceptions.rb +100 -100
  16. data/lib/rev-api/http_client.rb +97 -97
  17. data/lib/rev-api/models/order.rb +138 -138
  18. data/lib/rev-api/models/order_request.rb +222 -228
  19. data/lib/rev-api/version.rb +3 -3
  20. data/rev-api.gemspec +34 -34
  21. data/spec/fixtures/api_cassettes/cancel_order.yml +38 -38
  22. data/spec/fixtures/api_cassettes/cancel_order_not_allowed.yml +40 -40
  23. data/spec/fixtures/api_cassettes/get_attachment_content.yml +399 -399
  24. data/spec/fixtures/api_cassettes/get_attachment_content_as_pdf.yml +399 -399
  25. data/spec/fixtures/api_cassettes/get_attachment_content_as_text.yml +65 -65
  26. data/spec/fixtures/api_cassettes/get_attachment_content_as_youtube_transcript.yml +66 -66
  27. data/spec/fixtures/api_cassettes/get_attachment_content_unacceptable_representation.yml +42 -42
  28. data/spec/fixtures/api_cassettes/get_attachment_content_with_invalid_id.yml +42 -42
  29. data/spec/fixtures/api_cassettes/get_attachment_metadata.yml +42 -42
  30. data/spec/fixtures/api_cassettes/get_attachment_with_invalid_id.yml +40 -40
  31. data/spec/fixtures/api_cassettes/get_orders.yml +122 -122
  32. data/spec/fixtures/api_cassettes/get_orders_with_clientRef.yml +41 -41
  33. data/spec/fixtures/api_cassettes/get_tc_order.yml +44 -44
  34. data/spec/fixtures/api_cassettes/get_third_page_of_orders.yml +58 -58
  35. data/spec/fixtures/api_cassettes/get_tr_order.yml +44 -44
  36. data/spec/fixtures/api_cassettes/link_input.yml +44 -44
  37. data/spec/fixtures/api_cassettes/link_input_with_all_attributes.yml +44 -44
  38. data/spec/fixtures/api_cassettes/link_input_with_spaces_in_filename.yml +45 -45
  39. data/spec/fixtures/api_cassettes/not_found_order.yml +42 -42
  40. data/spec/fixtures/api_cassettes/submit_cp_order.yml +45 -45
  41. data/spec/fixtures/api_cassettes/submit_su_order.yml +45 -45
  42. data/spec/fixtures/api_cassettes/submit_tc_order_with_account_balance.yml +45 -45
  43. data/spec/fixtures/api_cassettes/submit_tc_order_with_invalid_request.yml +45 -45
  44. data/spec/fixtures/api_cassettes/submit_tc_order_without_specifying_payment.yml +45 -45
  45. data/spec/fixtures/api_cassettes/submit_tr_order.yml +44 -44
  46. data/spec/fixtures/api_cassettes/unauthorized.yml +42 -42
  47. data/spec/fixtures/api_cassettes/upload_input.yml +90 -90
  48. data/spec/fixtures/api_cassettes/upload_input_with_invalid_content_type.yml +91 -91
  49. data/spec/lib/rev/api_spec.rb +24 -24
  50. data/spec/lib/rev/cancel_order_spec.rb +24 -24
  51. data/spec/lib/rev/exceptions_spec.rb +8 -8
  52. data/spec/lib/rev/get_attachment_content_spec.rb +79 -79
  53. data/spec/lib/rev/get_attachment_metadata_spec.rb +33 -33
  54. data/spec/lib/rev/get_order_spec.rb +67 -67
  55. data/spec/lib/rev/get_orders_spec.rb +61 -61
  56. data/spec/lib/rev/http_client_spec.rb +32 -32
  57. data/spec/lib/rev/models/order_request_spec.rb +6 -14
  58. data/spec/lib/rev/models/order_spec.rb +58 -58
  59. data/spec/lib/rev/post_inputs_spec.rb +94 -94
  60. data/spec/lib/rev/post_order_spec.rb +195 -195
  61. data/spec/spec_helper.rb +49 -49
  62. metadata +39 -82
@@ -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
@@ -1,45 +1,45 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://www.revtrunk.com/api/v1/orders
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"payment":{"type":"AccountBalance"},"caption_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"video_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"output_file_formats":["SubRip"]},"client_ref":"XB432423","comment":"Please
9
- work quickly"}'
10
- headers:
11
- Content-Type:
12
- - application/json
13
- Authorization:
14
- - Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
15
- User-Agent:
16
- - RevOfficialRubySDK/1.0.0
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
- - https://www.revtrunk.com/api/v1/orders/CP12345
30
- Server:
31
- - Microsoft-IIS/7.5
32
- X-Miniprofiler-Ids:
33
- - ! '["43bcb320-a1c9-4e9f-96c1-320e01a31549","ad8a37cd-e5ea-4134-ac9e-0390f722d6f6"]'
34
- X-Powered-By:
35
- - ASP.NET
36
- Date:
37
- - Wed, 18 Sep 2013 00:21:27 GMT
38
- Content-Length:
39
- - '0'
40
- body:
41
- encoding: US-ASCII
42
- string: ''
43
- http_version:
44
- recorded_at: Wed, 18 Sep 2013 00:21:27 GMT
45
- recorded_with: VCR 2.5.0
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.revtrunk.com/api/v1/orders
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"payment":{"type":"AccountBalance"},"caption_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"video_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"output_file_formats":["SubRip"]},"client_ref":"XB432423","comment":"Please
9
+ work quickly"}'
10
+ headers:
11
+ Content-Type:
12
+ - application/json
13
+ Authorization:
14
+ - Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
15
+ User-Agent:
16
+ - RevOfficialRubySDK/1.0.0
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
+ - https://www.revtrunk.com/api/v1/orders/CP12345
30
+ Server:
31
+ - Microsoft-IIS/7.5
32
+ X-Miniprofiler-Ids:
33
+ - ! '["43bcb320-a1c9-4e9f-96c1-320e01a31549","ad8a37cd-e5ea-4134-ac9e-0390f722d6f6"]'
34
+ X-Powered-By:
35
+ - ASP.NET
36
+ Date:
37
+ - Wed, 18 Sep 2013 00:21:27 GMT
38
+ Content-Length:
39
+ - '0'
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ''
43
+ http_version:
44
+ recorded_at: Wed, 18 Sep 2013 00:21:27 GMT
45
+ 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/orders
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"payment":{"type":"AccountBalance"},"caption_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"video_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"subtitle_languages":["es","it"],"output_file_formats":["SubRip"]},"client_ref":"XB432423","comment":"Please
9
- work quickly"}'
10
- headers:
11
- Content-Type:
12
- - application/json
13
- Authorization:
14
- - Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
15
- User-Agent:
16
- - RevOfficialRubySDK/1.0.0
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
- - https://www.revtrunk.com/api/v1/orders/CP56789
30
- Server:
31
- - Microsoft-IIS/7.5
32
- X-Miniprofiler-Ids:
33
- - ! '["43bcb320-a1c9-4e9f-96c1-320e01a31549","ad8a37cd-e5ea-4134-ac9e-0390f722d6f6"]'
34
- X-Powered-By:
35
- - ASP.NET
36
- Date:
37
- - Wed, 18 Sep 2013 00:21:27 GMT
38
- Content-Length:
39
- - '0'
40
- body:
41
- encoding: US-ASCII
42
- string: ''
43
- http_version:
44
- recorded_at: Wed, 18 Sep 2013 00:21:27 GMT
45
- recorded_with: VCR 2.5.0
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.revtrunk.com/api/v1/orders
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"payment":{"type":"AccountBalance"},"caption_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"video_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"subtitle_languages":["es","it"],"output_file_formats":["SubRip"]},"client_ref":"XB432423","comment":"Please
9
+ work quickly"}'
10
+ headers:
11
+ Content-Type:
12
+ - application/json
13
+ Authorization:
14
+ - Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
15
+ User-Agent:
16
+ - RevOfficialRubySDK/1.0.0
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
+ - https://www.revtrunk.com/api/v1/orders/CP56789
30
+ Server:
31
+ - Microsoft-IIS/7.5
32
+ X-Miniprofiler-Ids:
33
+ - ! '["43bcb320-a1c9-4e9f-96c1-320e01a31549","ad8a37cd-e5ea-4134-ac9e-0390f722d6f6"]'
34
+ X-Powered-By:
35
+ - ASP.NET
36
+ Date:
37
+ - Wed, 18 Sep 2013 00:21:27 GMT
38
+ Content-Length:
39
+ - '0'
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ''
43
+ http_version:
44
+ recorded_at: Wed, 18 Sep 2013 00:21:27 GMT
45
+ 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/orders
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"payment":{"type":"AccountBalance"},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"verbatim":true,"timestamps":true},"client_ref":"XB432423","comment":"Please
9
- work quickly"}'
10
- headers:
11
- Content-Type:
12
- - application/json
13
- Authorization:
14
- - Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
15
- User-Agent:
16
- - RevOfficialRubySDK/1.0.0
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
- - https://www.revtrunk.com/api/v1/orders/TC0406615008
30
- Server:
31
- - Microsoft-IIS/7.5
32
- X-Miniprofiler-Ids:
33
- - ! '["5b0ebd8f-0726-4610-9bd3-d2738c791f19","c3750845-7fe0-42b2-b928-698a77bd5b41","0d47c50d-e4e3-43ad-bba2-c40966f833e9","be763964-c7a6-4655-950c-1b519805da90","5d9213c0-140f-427e-8a9b-22a73c105b8c","a108c467-b2bd-4fa1-9c6d-5fe331a5e0fc","612832dd-2b2c-47bb-b62b-0fb25513dd15"]'
34
- X-Powered-By:
35
- - ASP.NET
36
- Date:
37
- - Mon, 16 Sep 2013 23:30:37 GMT
38
- Content-Length:
39
- - '0'
40
- body:
41
- encoding: US-ASCII
42
- string: ''
43
- http_version:
44
- recorded_at: Mon, 16 Sep 2013 23:30:36 GMT
45
- recorded_with: VCR 2.5.0
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.revtrunk.com/api/v1/orders
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"payment":{"type":"AccountBalance"},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"verbatim":true,"timestamps":true},"client_ref":"XB432423","comment":"Please
9
+ work quickly"}'
10
+ headers:
11
+ Content-Type:
12
+ - application/json
13
+ Authorization:
14
+ - Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
15
+ User-Agent:
16
+ - RevOfficialRubySDK/1.0.0
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
+ - https://www.revtrunk.com/api/v1/orders/TC0406615008
30
+ Server:
31
+ - Microsoft-IIS/7.5
32
+ X-Miniprofiler-Ids:
33
+ - ! '["5b0ebd8f-0726-4610-9bd3-d2738c791f19","c3750845-7fe0-42b2-b928-698a77bd5b41","0d47c50d-e4e3-43ad-bba2-c40966f833e9","be763964-c7a6-4655-950c-1b519805da90","5d9213c0-140f-427e-8a9b-22a73c105b8c","a108c467-b2bd-4fa1-9c6d-5fe331a5e0fc","612832dd-2b2c-47bb-b62b-0fb25513dd15"]'
34
+ X-Powered-By:
35
+ - ASP.NET
36
+ Date:
37
+ - Mon, 16 Sep 2013 23:30:37 GMT
38
+ Content-Length:
39
+ - '0'
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ''
43
+ http_version:
44
+ recorded_at: Mon, 16 Sep 2013 23:30:36 GMT
45
+ 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/orders
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"payment":{"type":"AccountBalance"}}'
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: 400
19
- message: Bad Request
20
- headers:
21
- Cache-Control:
22
- - no-cache
23
- Pragma:
24
- - no-cache
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Expires:
28
- - '-1'
29
- Server:
30
- - Microsoft-IIS/7.5
31
- X-Miniprofiler-Ids:
32
- - ! '["5b0ebd8f-0726-4610-9bd3-d2738c791f19","c3750845-7fe0-42b2-b928-698a77bd5b41","0d47c50d-e4e3-43ad-bba2-c40966f833e9","be763964-c7a6-4655-950c-1b519805da90","5d9213c0-140f-427e-8a9b-22a73c105b8c","a108c467-b2bd-4fa1-9c6d-5fe331a5e0fc","612832dd-2b2c-47bb-b62b-0fb25513dd15","1e5d0be8-6383-41ca-bb5f-583c28c26591"]'
33
- X-Powered-By:
34
- - ASP.NET
35
- Date:
36
- - Mon, 16 Sep 2013 23:42:39 GMT
37
- Content-Length:
38
- - '100'
39
- body:
40
- encoding: US-ASCII
41
- string: ! '{"code":10004,"message":"You must specify either translation or transcription
42
- options in an order."}'
43
- http_version:
44
- recorded_at: Mon, 16 Sep 2013 23:42:39 GMT
45
- recorded_with: VCR 2.5.0
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.revtrunk.com/api/v1/orders
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"payment":{"type":"AccountBalance"}}'
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: 400
19
+ message: Bad Request
20
+ headers:
21
+ Cache-Control:
22
+ - no-cache
23
+ Pragma:
24
+ - no-cache
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Expires:
28
+ - '-1'
29
+ Server:
30
+ - Microsoft-IIS/7.5
31
+ X-Miniprofiler-Ids:
32
+ - ! '["5b0ebd8f-0726-4610-9bd3-d2738c791f19","c3750845-7fe0-42b2-b928-698a77bd5b41","0d47c50d-e4e3-43ad-bba2-c40966f833e9","be763964-c7a6-4655-950c-1b519805da90","5d9213c0-140f-427e-8a9b-22a73c105b8c","a108c467-b2bd-4fa1-9c6d-5fe331a5e0fc","612832dd-2b2c-47bb-b62b-0fb25513dd15","1e5d0be8-6383-41ca-bb5f-583c28c26591"]'
33
+ X-Powered-By:
34
+ - ASP.NET
35
+ Date:
36
+ - Mon, 16 Sep 2013 23:42:39 GMT
37
+ Content-Length:
38
+ - '100'
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"code":10004,"message":"You must specify either translation or transcription
42
+ options in an order."}'
43
+ http_version:
44
+ recorded_at: Mon, 16 Sep 2013 23:42:39 GMT
45
+ 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/orders
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"payment":{"type":"AccountBalance"},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"verbatim":true,"timestamps":true},"client_ref":"XB432423","comment":"Please
9
- work quickly"}'
10
- headers:
11
- Content-Type:
12
- - application/json
13
- Authorization:
14
- - Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
15
- User-Agent:
16
- - RevOfficialRubySDK/1.0.0
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
- - https://www.revtrunk.com/api/v1/orders/TC0406615008
30
- Server:
31
- - Microsoft-IIS/7.5
32
- X-Miniprofiler-Ids:
33
- - ! '["5b0ebd8f-0726-4610-9bd3-d2738c791f19","c3750845-7fe0-42b2-b928-698a77bd5b41","0d47c50d-e4e3-43ad-bba2-c40966f833e9","be763964-c7a6-4655-950c-1b519805da90","5d9213c0-140f-427e-8a9b-22a73c105b8c","a108c467-b2bd-4fa1-9c6d-5fe331a5e0fc","612832dd-2b2c-47bb-b62b-0fb25513dd15"]'
34
- X-Powered-By:
35
- - ASP.NET
36
- Date:
37
- - Mon, 16 Sep 2013 23:30:37 GMT
38
- Content-Length:
39
- - '0'
40
- body:
41
- encoding: US-ASCII
42
- string: ''
43
- http_version:
44
- recorded_at: Mon, 16 Sep 2013 23:30:36 GMT
45
- recorded_with: VCR 2.5.0
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.revtrunk.com/api/v1/orders
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"payment":{"type":"AccountBalance"},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length_seconds":900,"external_link":"https://vimeo.com/7976699"}],"verbatim":true,"timestamps":true},"client_ref":"XB432423","comment":"Please
9
+ work quickly"}'
10
+ headers:
11
+ Content-Type:
12
+ - application/json
13
+ Authorization:
14
+ - Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
15
+ User-Agent:
16
+ - RevOfficialRubySDK/1.0.0
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
+ - https://www.revtrunk.com/api/v1/orders/TC0406615008
30
+ Server:
31
+ - Microsoft-IIS/7.5
32
+ X-Miniprofiler-Ids:
33
+ - ! '["5b0ebd8f-0726-4610-9bd3-d2738c791f19","c3750845-7fe0-42b2-b928-698a77bd5b41","0d47c50d-e4e3-43ad-bba2-c40966f833e9","be763964-c7a6-4655-950c-1b519805da90","5d9213c0-140f-427e-8a9b-22a73c105b8c","a108c467-b2bd-4fa1-9c6d-5fe331a5e0fc","612832dd-2b2c-47bb-b62b-0fb25513dd15"]'
34
+ X-Powered-By:
35
+ - ASP.NET
36
+ Date:
37
+ - Mon, 16 Sep 2013 23:30:37 GMT
38
+ Content-Length:
39
+ - '0'
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ''
43
+ http_version:
44
+ recorded_at: Mon, 16 Sep 2013 23:30:36 GMT
45
+ recorded_with: VCR 2.5.0