rev-api 1.0.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 (56) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +20 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +3 -0
  6. data/Gemfile.lock +42 -0
  7. data/LICENSE +191 -0
  8. data/README.md +124 -0
  9. data/Rakefile +14 -0
  10. data/examples/cli.rb +200 -0
  11. data/lib/rev-api.rb +26 -0
  12. data/lib/rev-api/api.rb +311 -0
  13. data/lib/rev-api/api_serializable.rb +30 -0
  14. data/lib/rev-api/exceptions.rb +108 -0
  15. data/lib/rev-api/http_client.rb +97 -0
  16. data/lib/rev-api/models/order.rb +113 -0
  17. data/lib/rev-api/models/order_request.rb +183 -0
  18. data/lib/rev-api/version.rb +3 -0
  19. data/rev-api.gemspec +33 -0
  20. data/spec/fixtures/api_cassettes/cancel_order.yml +38 -0
  21. data/spec/fixtures/api_cassettes/cancel_order_not_allowed.yml +40 -0
  22. data/spec/fixtures/api_cassettes/get_attachment_content.yml +399 -0
  23. data/spec/fixtures/api_cassettes/get_attachment_content_as_pdf.yml +399 -0
  24. data/spec/fixtures/api_cassettes/get_attachment_content_as_text.yml +65 -0
  25. data/spec/fixtures/api_cassettes/get_attachment_content_as_youtube_transcript.yml +66 -0
  26. data/spec/fixtures/api_cassettes/get_attachment_content_unacceptable_representation.yml +42 -0
  27. data/spec/fixtures/api_cassettes/get_attachment_content_with_invalid_id.yml +42 -0
  28. data/spec/fixtures/api_cassettes/get_attachment_metadata.yml +42 -0
  29. data/spec/fixtures/api_cassettes/get_attachment_with_invalid_id.yml +40 -0
  30. data/spec/fixtures/api_cassettes/get_orders.yml +122 -0
  31. data/spec/fixtures/api_cassettes/get_tc_order.yml +44 -0
  32. data/spec/fixtures/api_cassettes/get_third_page_of_orders.yml +58 -0
  33. data/spec/fixtures/api_cassettes/get_tr_order.yml +44 -0
  34. data/spec/fixtures/api_cassettes/link_input.yml +44 -0
  35. data/spec/fixtures/api_cassettes/link_input_with_all_attributes.yml +44 -0
  36. data/spec/fixtures/api_cassettes/not_found_order.yml +42 -0
  37. data/spec/fixtures/api_cassettes/submit_tc_order_with_account_balance.yml +45 -0
  38. data/spec/fixtures/api_cassettes/submit_tc_order_with_cc_and_all_attributes.yml +46 -0
  39. data/spec/fixtures/api_cassettes/submit_tc_order_with_invalid_request.yml +45 -0
  40. data/spec/fixtures/api_cassettes/submit_tc_order_with_saved_cc.yml +45 -0
  41. data/spec/fixtures/api_cassettes/submit_tr_order.yml +44 -0
  42. data/spec/fixtures/api_cassettes/unauthorized.yml +42 -0
  43. data/spec/fixtures/api_cassettes/upload_input.yml +130 -0
  44. data/spec/fixtures/api_cassettes/upload_input_with_invalid_content_type.yml +131 -0
  45. data/spec/fixtures/sourcedocument.png +0 -0
  46. data/spec/lib/rev/api_spec.rb +24 -0
  47. data/spec/lib/rev/cancel_order_spec.rb +25 -0
  48. data/spec/lib/rev/get_attachment_content_spec.rb +79 -0
  49. data/spec/lib/rev/get_attachment_metadata_spec.rb +33 -0
  50. data/spec/lib/rev/get_order_spec.rb +68 -0
  51. data/spec/lib/rev/get_orders_spec.rb +39 -0
  52. data/spec/lib/rev/http_client_spec.rb +32 -0
  53. data/spec/lib/rev/post_inputs_spec.rb +75 -0
  54. data/spec/lib/rev/post_order_spec.rb +207 -0
  55. data/spec/spec_helper.rb +31 -0
  56. metadata +248 -0
@@ -0,0 +1,58 @@
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":99,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"230.mp4","id":"RY2pDXYAAAAAAAAA","audio_length":92,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/RY2pDXYAAAAAAAAA/content"}]},{"kind":"media","name":"Interview#7_001.mp3","id":"RY2pDXcAAAAAAAAA","audio_length":7,"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":13,"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":"TR0273121565","price":99.0000,"status":"Finding
44
+ Translator","translation":{"total_word_count":0,"source_language_code":"es","destination_language_code":"en"},"comments":[],"attachments":[{"kind":"media","name":"async
45
+ tasks links.txt","id":"HYFHEGoAAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/HYFHEGoAAAAAAAAA/content"}]}]},{"order_number":"TC0152334790","price":12.5000,"status":"Finding
46
+ Reviewer","transcription":{"total_length":10,"verbatim":false,"timestamps":false},"comments":[],"attachments":[]},{"order_number":"TC0374252143","price":20.0000,"status":"Transcribing","transcription":{"total_length":16,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"Sleep
47
+ Away.mp3","id":"b6JOFmgAAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/b6JOFmgAAAAAAAAA/content"}]},{"kind":"media","name":"async
48
+ 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
49
+ Transcriptionist","transcription":{"total_length":33,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"calculate
50
+ throughput only via completed jobs.sql","id":"KNSsFmUAAAAAAAAA","audio_length":10,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/KNSsFmUAAAAAAAAA/content"}]},{"kind":"media","name":"calculate
51
+ whole wip report by completed jobs.sql","id":"KNSsFmYAAAAAAAAA","audio_length":23,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/KNSsFmYAAAAAAAAA/content"}]}]},{"order_number":"TR0059901137","price":124.0000,"status":"Preparing
52
+ for mailing","translation":{"total_word_count":0,"source_language_code":"es","destination_language_code":"en"},"comments":[],"attachments":[{"kind":"media","name":"async
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
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.revtrunk.com/api/v1/orders/TR0116711100
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
+ - ! '["4da53417-6cee-4900-becc-54ffc448d501","b09218a3-e30d-4e14-9ec8-4d8004748fe6"]'
31
+ X-Powered-By:
32
+ - ASP.NET
33
+ Date:
34
+ - Wed, 11 Sep 2013 00:42:31 GMT
35
+ Content-Length:
36
+ - '576'
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! '{"order_number":"TR0116711100","price":20.0000,"status":"Finding
40
+ Reviewer","translation":{"total_word_count":2,"source_language_code":"cs","destination_language_code":"en"},"comments":[{"by":"Den
41
+ Markin","timestamp":"2012-10-19T18:55:00.743","text":"checking invoice info"}],"attachments":[{"kind":"media","name":"dl.dropbox.com_u_6623161_SoundNote_97087F7F-62A1-4005-91C9-42157AB014A2.soundnote_97087F7F-62A1-4005-91C9-42157AB014A2_0.m4a.txt","id":"vN70BhcAAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/vN70BhcAAAAAAAAA/content"}]}]}'
42
+ http_version:
43
+ recorded_at: Wed, 11 Sep 2013 00:42:31 GMT
44
+ recorded_with: VCR 2.5.0
@@ -0,0 +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":"http://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:foxtranslate: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
@@ -0,0 +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":"http://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:foxtranslate: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
@@ -0,0 +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
@@ -0,0 +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","credit_card":null},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length":15,"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
@@ -0,0 +1,46 @@
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":"CreditCard","credit_card":{"number":"4111111111111111","expiration_month":9,"expiration_year":2023,"cardholder":"Joe
9
+ Smith","billing_address":{"street":"123 Pine Lane","street2":"Apt D","city":"MyTown","state":"MN","zip":"12345","country_alpha2":"US"}}},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length":15,"external_link":"https://vimeo.com/7976699"}],"verbatim":true,"timestamps":true},"client_ref":"XB432423","comment":"Please
10
+ work quickly","notification":{"url":"http://www.example.com","level":"Detailed"}}'
11
+ headers:
12
+ Content-Type:
13
+ - application/json
14
+ Authorization:
15
+ - Rev welcome:AAAAAu/YjZ3phXU5FsF35yIcgiA=
16
+ User-Agent:
17
+ - RevOfficialRubySDK/1.0.0
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: Created
22
+ headers:
23
+ Cache-Control:
24
+ - no-cache
25
+ Pragma:
26
+ - no-cache
27
+ Expires:
28
+ - '-1'
29
+ Location:
30
+ - https://www.revtrunk.com/api/v1/orders/TC0520815415
31
+ Server:
32
+ - Microsoft-IIS/7.5
33
+ X-Miniprofiler-Ids:
34
+ - ! '["59869684-6394-4493-9fa8-a0966066f033"]'
35
+ X-Powered-By:
36
+ - ASP.NET
37
+ Date:
38
+ - Tue, 17 Sep 2013 00:30:56 GMT
39
+ Content-Length:
40
+ - '0'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ''
44
+ http_version:
45
+ recorded_at: Tue, 17 Sep 2013 00:30:56 GMT
46
+ recorded_with: VCR 2.5.0
@@ -0,0 +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","credit_card":null}}'
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
@@ -0,0 +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":"CreditCard","credit_card":{"saved_id":1}},"transcription_options":{"inputs":[{"external_link":"http://www.youtube.com/watch?v=UF8uR6Z6KLc"},{"audio_length":15,"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/TC0370955571
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"]'
34
+ X-Powered-By:
35
+ - ASP.NET
36
+ Date:
37
+ - Mon, 16 Sep 2013 22:55:26 GMT
38
+ Content-Length:
39
+ - '0'
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ''
43
+ http_version:
44
+ recorded_at: Mon, 16 Sep 2013 22:55:26 GMT
45
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,44 @@
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"},"translation_options":{"source_language_code":"es","destination_language_code":"en","inputs":[{"word_length":1000,"uri":"urn:foxtranslate:inputmedia:SnVwbG9hZHMvMjAxMy0wOS0xNy9lMzk4MWIzNS0wNzM1LTRlMDAtODY1NC1jNWY4ZjE4MzdlMTIvc291cmNlZG9jdW1lbnQucG5n"}]}}'
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
+ - https://www.revtrunk.com/api/v1/orders/TR0235803277
29
+ Server:
30
+ - Microsoft-IIS/7.5
31
+ X-Miniprofiler-Ids:
32
+ - ! '["43bcb320-a1c9-4e9f-96c1-320e01a31549","ad8a37cd-e5ea-4134-ac9e-0390f722d6f6"]'
33
+ X-Powered-By:
34
+ - ASP.NET
35
+ Date:
36
+ - Wed, 18 Sep 2013 00:21:27 GMT
37
+ Content-Length:
38
+ - '0'
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ''
42
+ http_version:
43
+ recorded_at: Wed, 18 Sep 2013 00:21:27 GMT
44
+ recorded_with: VCR 2.5.0