rev-api 1.0.4 → 2.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/examples/cli.rb +7 -6
- data/lib/rev-api/exceptions.rb +0 -11
- data/lib/rev-api/models/order.rb +9 -3
- data/lib/rev-api/models/order_request.rb +21 -30
- data/lib/rev-api/version.rb +1 -1
- data/spec/fixtures/api_cassettes/get_attachment_metadata.yml +1 -1
- data/spec/fixtures/api_cassettes/get_orders.yml +80 -80
- data/spec/fixtures/api_cassettes/get_tc_order.yml +1 -1
- data/spec/fixtures/api_cassettes/get_third_page_of_orders.yml +6 -6
- data/spec/fixtures/api_cassettes/submit_cp_order.yml +1 -1
- data/spec/fixtures/api_cassettes/submit_tc_order_with_account_balance.yml +1 -1
- data/spec/fixtures/api_cassettes/submit_tc_order_with_invalid_request.yml +1 -1
- data/spec/fixtures/api_cassettes/{submit_tc_order_with_saved_cc.yml → submit_tc_order_without_specifying_payment.yml} +5 -5
- data/spec/lib/rev/get_attachment_metadata_spec.rb +1 -1
- data/spec/lib/rev/get_order_spec.rb +1 -1
- data/spec/lib/rev/models/order_request_spec.rb +3 -3
- data/spec/lib/rev/models/order_spec.rb +3 -3
- data/spec/lib/rev/post_order_spec.rb +26 -97
- metadata +38 -40
- data/spec/fixtures/api_cassettes/submit_tc_order_with_cc_and_all_attributes.yml +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9135f3db4724a4e4f1744d05f37c11f8af8a69ac
|
4
|
+
data.tar.gz: 5cc28e64e847cef9dde1bfe3d2a0b5ccb3371332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a620695e2f0f80045ed11ffbdbeeb04e0f115b2e1babfb4db97235eefc22f4d51801663e1a01a487c9e56eef8e4f556b7f921b059ff5756d99571061790b04e
|
7
|
+
data.tar.gz: 033c6a42317c8e1c2282aab691eea932651f49a1b424050205ecd98c03a8352c4b00fe12bb6c54bccf77c5a065c8354946fe2e2dfdca90e2511c18f153ac3c08
|
data/Gemfile.lock
CHANGED
data/examples/cli.rb
CHANGED
@@ -207,13 +207,15 @@ class RevCLI
|
|
207
207
|
end
|
208
208
|
|
209
209
|
def place_tc(args)
|
210
|
-
|
210
|
+
input_urls = upload(args, 'audio/mpeg')
|
211
|
+
inputs = input_urls.map { |url| Rev::Input.new(:uri => url, :audio_length_seconds => 180) }
|
211
212
|
tc_options = Rev::TranscriptionOptions.new(inputs)
|
212
213
|
place_helper(inputs, { :transcription_options => tc_options })
|
213
214
|
end
|
214
215
|
|
215
216
|
def place_cp(args)
|
216
|
-
|
217
|
+
input_urls = upload(args, 'video/mpeg')
|
218
|
+
inputs = input_urls.map { |url| Rev::Input.new(:uri => url, :video_length_seconds => 180) }
|
217
219
|
cp_options = Rev::CaptionOptions.new(inputs, {:output_file_formats => [Rev::CaptionOptions::OUTPUT_FILE_FORMATS[:scc]] })
|
218
220
|
place_helper(inputs, { :caption_options => cp_options })
|
219
221
|
end
|
@@ -229,13 +231,12 @@ class RevCLI
|
|
229
231
|
puts "Uploading #{f}"
|
230
232
|
@rev_client.upload_input(f, type)
|
231
233
|
end
|
232
|
-
input_urls
|
234
|
+
input_urls
|
233
235
|
end
|
234
236
|
|
235
237
|
def place_helper(inputs, options)
|
236
|
-
|
237
|
-
|
238
|
-
request = Rev::OrderRequest.new(payment, options)
|
238
|
+
options = options.merge({ :client_ref => 'XB432423', :comment => 'Please work quickly' })
|
239
|
+
request = Rev::OrderRequest.new(options)
|
239
240
|
|
240
241
|
begin
|
241
242
|
new_order = @rev_client.submit_order(request)
|
data/lib/rev-api/exceptions.rb
CHANGED
@@ -80,17 +80,6 @@ module Rev
|
|
80
80
|
# 30011 Account Balance Limit Exceeded - if the order request specified payment using account balance, but doing so would exceed the user's balance limit
|
81
81
|
ACCOUNT_BALANCE_LIMIT_EXCEEDED = 30011
|
82
82
|
|
83
|
-
# 30020 Missing Credit Card Info - if the order request specified payment using credit card, but did not provide the credit card info element
|
84
|
-
MISSING_CREDIT_CARD_INFO = 30020
|
85
|
-
|
86
|
-
# 30021 Invalid Saved Credit Card - if the order request specified payment using a saved credit card, but the specified credit card id was invalid
|
87
|
-
INVALID_SAVED_CREDIT_CARD = 30021
|
88
|
-
|
89
|
-
# 30023 Invalid Credit Card Details - if the order request specified payment using credit card, but some required credit card data elements were missing or had invalid values
|
90
|
-
INVALID_CREDIT_CARD_DETAILS = 30023
|
91
|
-
|
92
|
-
# 30024 Credit Card Authorization Failed - if the order request specified payment using credit card, but we could not charge the card
|
93
|
-
CREDIT_CARD_AUTHORIZATION_FAILED = 30024
|
94
83
|
end
|
95
84
|
|
96
85
|
module InputRequestErrorCodes
|
data/lib/rev-api/models/order.rb
CHANGED
@@ -65,18 +65,24 @@ module Rev
|
|
65
65
|
# Additional information specific to transcription orders,
|
66
66
|
# such as total length in minutes, verbatim and timestamps flags
|
67
67
|
class TranscriptionInfo < ApiSerializable
|
68
|
-
attr_reader :
|
68
|
+
attr_reader :total_length_seconds, :verbatim, :timestamps
|
69
|
+
|
70
|
+
# @deprecated use :total_length_seconds instead
|
71
|
+
attr_reader :total_length
|
69
72
|
end
|
70
73
|
|
71
74
|
# Additional information specific to caption orders
|
72
75
|
class CaptionInfo < ApiSerializable
|
76
|
+
attr_reader :total_length_seconds
|
77
|
+
|
78
|
+
# @deprecated use :total_length_seconds instead
|
73
79
|
attr_reader :total_length
|
74
80
|
end
|
75
81
|
|
76
82
|
# Represents order attachment - logical document associated with order
|
77
83
|
class Attachment < ApiSerializable
|
78
|
-
attr_reader :kind, :name, :id, :
|
79
|
-
|
84
|
+
attr_reader :kind, :name, :id, :audio_length_seconds, :word_count, :links, :video_length_seconds
|
85
|
+
|
80
86
|
KINDS = {
|
81
87
|
:transcript => 'transcript',
|
82
88
|
:translation => 'translation',
|
@@ -39,48 +39,40 @@ module Rev
|
|
39
39
|
|
40
40
|
# @param payment [Payment] payment info
|
41
41
|
# @param fields [Hash] of fields to initialize instance. See instance attributes for available fields.
|
42
|
-
|
42
|
+
# @deprecated payment always defaults to :accoount_balance
|
43
|
+
def self.new_with_payment(payment, fields = {})
|
43
44
|
fields = { :priority => PRIORITY[:normal] }.merge(fields)
|
44
45
|
super fields
|
45
46
|
@payment = payment
|
46
47
|
end
|
48
|
+
|
49
|
+
# @param fields [Hash] of fields to initialize instance. See instance attributes for available fields.
|
50
|
+
def initialize(fields = {})
|
51
|
+
fields = { :priority => PRIORITY[:normal] }.merge(fields)
|
52
|
+
@payment = Rev::Payment.with_account_balance
|
53
|
+
super fields
|
54
|
+
end
|
47
55
|
end
|
48
56
|
|
49
|
-
# Payment Info. Payment can be done
|
50
|
-
#
|
51
|
-
# or credit card details provided.
|
52
|
-
#
|
53
|
-
# For credit card payments, if specifying the credit card details in the request, the required
|
54
|
-
# elements are the card number, cardholder name, expiration month and year, and billing zipcode.
|
55
|
-
# If using the user's saved card, you must currently specify the value "1" for the saved card id,
|
56
|
-
# as we currently only allow a single card to be saved for a user.
|
57
|
+
# Payment Info. Payment can only be done by debiting the user's account balance.
|
58
|
+
# @deprecated setting the payment is no longer necessary. All orders now default to :account_balance
|
57
59
|
class Payment < ApiSerializable
|
58
|
-
attr_accessor :type
|
60
|
+
attr_accessor :type
|
59
61
|
|
60
62
|
# use to correctly set payment type
|
61
63
|
TYPES = {
|
62
|
-
:credit_card => 'CreditCard',
|
63
64
|
:account_balance => 'AccountBalance'
|
64
65
|
}
|
65
66
|
|
66
67
|
CC_ON_FILE_ID = 1
|
67
68
|
|
68
69
|
# @param type [String] payment method
|
69
|
-
|
70
|
-
|
70
|
+
def initialize(type)
|
71
|
+
warn "[DEPRECATION] `Payment` option is now optional, since it will always default to AccountBalance"
|
71
72
|
@type = type
|
72
|
-
@credit_card = credit_card unless credit_card.nil?
|
73
73
|
end
|
74
74
|
|
75
75
|
class << self
|
76
|
-
def with_credit_card_on_file()
|
77
|
-
Payment::new(TYPES[:credit_card], CreditCard.new(:saved_id => CC_ON_FILE_ID))
|
78
|
-
end
|
79
|
-
|
80
|
-
def with_saved_credit_card(credit_card)
|
81
|
-
Payment::new(TYPES[:credit_card], credit_card)
|
82
|
-
end
|
83
|
-
|
84
76
|
def with_account_balance()
|
85
77
|
Payment::new(TYPES[:account_balance])
|
86
78
|
end
|
@@ -92,11 +84,6 @@ module Rev
|
|
92
84
|
attr_reader :street, :street2, :city, :state, :zip, :country_alpha2
|
93
85
|
end
|
94
86
|
|
95
|
-
# Credit Card
|
96
|
-
class CreditCard < ApiSerializable
|
97
|
-
attr_reader :number, :expiration_month, :expiration_year, :cardholder, :billing_address, :saved_id
|
98
|
-
end
|
99
|
-
|
100
87
|
# Superclass for the business-line options that handles capture and common validation of inputs.
|
101
88
|
class InputOptions < ApiSerializable
|
102
89
|
# Mandatory, contains list of inputs. Must have at least one element.
|
@@ -191,9 +178,13 @@ module Rev
|
|
191
178
|
# Mandatory when used with {Rev::OrderRequest::TranslationInfo}, length of document, in words
|
192
179
|
attr_reader :word_length
|
193
180
|
|
194
|
-
# Length of audio
|
195
|
-
# Used within {Rev::OrderRequest::TranscriptionInfo}
|
196
|
-
attr_reader :
|
181
|
+
# Length of audio in seconds (mandatory in case of inability to determine it automatically).
|
182
|
+
# Used within {Rev::OrderRequest::TranscriptionInfo}
|
183
|
+
attr_reader :audio_length_seconds
|
184
|
+
|
185
|
+
# Length of video in seconds (mandatory in case of inability to determine it automatically).
|
186
|
+
# Used within {Rev::OrderRequest::CaptionInfo}
|
187
|
+
attr_reader :video_length_seconds
|
197
188
|
|
198
189
|
# Mandatory, URI of the media, as returned from the call to POST /inputs.
|
199
190
|
# :external_link might substitute :uri for Transcription or Caption.
|
data/lib/rev-api/version.rb
CHANGED
@@ -36,7 +36,7 @@ http_interactions:
|
|
36
36
|
- '207'
|
37
37
|
body:
|
38
38
|
encoding: US-ASCII
|
39
|
-
string: ! '{"kind":"media","name":"How can I find success in life.mp4","id":"LufnCVQCAAAAAAAA","
|
39
|
+
string: ! '{"kind":"media","name":"How can I find success in life.mp4","id":"LufnCVQCAAAAAAAA","audio_length_seconds":300,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVQCAAAAAAAA/content"}]}'
|
40
40
|
http_version:
|
41
41
|
recorded_at: Thu, 12 Sep 2013 21:49:24 GMT
|
42
42
|
recorded_with: VCR 2.5.0
|
@@ -37,86 +37,86 @@ http_interactions:
|
|
37
37
|
body:
|
38
38
|
encoding: US-ASCII
|
39
39
|
string: ! '{"total_count":77,"results_per_page":8,"page":0,"orders":[{"order_number":"TC0166192942","price":110.0000,"status":"Finding
|
40
|
-
Transcriptionist","transcription":{"
|
41
|
-
can I find success in life.mp4","id":"LufnCVQCAAAAAAAA","
|
42
|
-
and willpower.mp4","id":"LufnCVUCAAAAAAAA","
|
43
|
-
does our culture fail to fulfill us.mp4","id":"LufnCVYCAAAAAAAA","
|
44
|
-
do I need to do to be happier.mp4","id":"LufnCVcCAAAAAAAA","
|
45
|
-
doesn''t just looking out for myself bring me happiness.mp4","id":"LufnCVgCAAAAAAAA","
|
46
|
-
is the classroom of silence.mp4","id":"LufnCVkCAAAAAAAA","
|
47
|
-
it just me or is it hard to pray.mp4","id":"LufnCVoCAAAAAAAA","
|
48
|
-
I know God''s purpose for my life.mp4","id":"LufnCVsCAAAAAAAA","
|
49
|
-
story to illustrate what really matters.mp4","id":"LufnCVwCAAAAAAAA","
|
50
|
-
does God speak to us.mp4","id":"LufnCV0CAAAAAAAA","
|
51
|
-
God want me to be happy.mp4","id":"LufnCV4CAAAAAAAA","
|
52
|
-
does God want from me What is the essence of Christianity.mp4","id":"LufnCV8CAAAAAAAA","
|
53
|
-
should I seek God''s will for my life.mp4","id":"LufnCWACAAAAAAAA","
|
54
|
-
should I define success.mp4","id":"LufnCWECAAAAAAAA","
|
55
|
-
not afraid.mp4","id":"LufnCWICAAAAAAAA","
|
56
|
-
does a day of rest bring me closer to God.mp4","id":"LufnCWMCAAAAAAAA","
|
57
|
-
is sin.mp4","id":"LufnCWQCAAAAAAAA","
|
58
|
-
so busy where will I find time for God in my life.mp4","id":"LufnCWUCAAAAAAAA","
|
59
|
-
can I improve every relationship I have.mp4","id":"LufnCWYCAAAAAAAA","
|
60
|
-
reality of addictions.mp4","id":"LufnCWcCAAAAAAAA","
|
61
|
-
with criticism.mp4","id":"LufnCWgCAAAAAAAA","
|
62
|
-
can I change my life for the better.mp4","id":"LufnCWkCAAAAAAAA","
|
63
|
-
do my habits have to do with my happiness.mp4","id":"LufnCWoCAAAAAAAA","
|
64
|
-
does increasing my energy have to do with happiness.mp4","id":"LufnCWsCAAAAAAAA","
|
65
|
-
is prayer.mp4","id":"LufnCWwCAAAAAAAA","
|
66
|
-
is the purpose of prayer.mp4","id":"LufnCW0CAAAAAAAA","
|
67
|
-
should I pray.mp4","id":"LufnCW4CAAAAAAAA","
|
68
|
-
is the benefit of prayer.mp4","id":"LufnCW8CAAAAAAAA","
|
69
|
-
and prayer.mp4","id":"LufnCXACAAAAAAAA","
|
70
|
-
gifts does God give the Catholic Church.mp4","id":"LufnCXECAAAAAAAA","
|
71
|
-
there really a small still voice in me and why does it matter.mp4","id":"LufnCXICAAAAAAAA","
|
72
|
-
is silence a necessity to creating a relationship with God.mp4","id":"LufnCXMCAAAAAAAA","
|
73
|
-
does God want me to view my life and our world.mp4","id":"LufnCXQCAAAAAAAA","
|
74
|
-
is the Christian life.mp4","id":"LufnCXUCAAAAAAAA","
|
75
|
-
should I ask the big questions of life.mp4","id":"LufnCXYCAAAAAAAA","
|
76
|
-
is my essential purpose.mp4","id":"LufnCXcCAAAAAAAA","
|
77
|
-
Transcriptionist","transcription":{"
|
78
|
-
can I find success in life.mp4","id":"2FfsGlMCAAAAAAAA","
|
79
|
-
Transcriptionist","transcription":{"
|
80
|
-
can I find success in life.mp4","id":"gQjHB1ICAAAAAAAA","
|
81
|
-
Transcriptionist","transcription":{"
|
82
|
-
to Say No (And Still Be Cool).mp4","id":"KnkUAFECAAAAAAAA","
|
83
|
-
Transcriptionist","transcription":{"
|
84
|
-
Transcriptionist","transcription":{"
|
85
|
-
can I find success in life.mp4","id":"fVr0HiwCAAAAAAAA","
|
86
|
-
does our culture fail to fulfill us.mp4","id":"fVr0Hi4CAAAAAAAA","
|
87
|
-
do I need to do to be happier.mp4","id":"fVr0Hi8CAAAAAAAA","
|
88
|
-
doesn''t just looking out for myself bring me happiness.mp4","id":"fVr0HjACAAAAAAAA","
|
89
|
-
is the classroom of silence.mp4","id":"fVr0HjECAAAAAAAA","
|
90
|
-
it just me or is it hard to pray.mp4","id":"fVr0HjICAAAAAAAA","
|
91
|
-
I know God''s purpose for my life.mp4","id":"fVr0HjMCAAAAAAAA","
|
92
|
-
does God speak to us.mp4","id":"fVr0HjUCAAAAAAAA","
|
93
|
-
God want me to be happy.mp4","id":"fVr0HjYCAAAAAAAA","
|
94
|
-
does God want from me What is the essence of Christianity.mp4","id":"fVr0HjcCAAAAAAAA","
|
95
|
-
should I seek God''s will for my life.mp4","id":"fVr0HjgCAAAAAAAA","
|
96
|
-
should I define success.mp4","id":"fVr0HjkCAAAAAAAA","
|
97
|
-
not afraid.mp4","id":"fVr0HjoCAAAAAAAA","
|
98
|
-
does a day of rest bring me closer to God.mp4","id":"fVr0HjsCAAAAAAAA","
|
99
|
-
is sin.mp4","id":"fVr0HjwCAAAAAAAA","
|
100
|
-
so busy where will I find time for God in my life.mp4","id":"fVr0Hj0CAAAAAAAA","
|
101
|
-
can I improve every relationship I have.mp4","id":"fVr0Hj4CAAAAAAAA","
|
102
|
-
reality of addictions.mp4","id":"fVr0Hj8CAAAAAAAA","
|
103
|
-
with criticism.mp4","id":"fVr0HkACAAAAAAAA","
|
104
|
-
can I change my life for the better.mp4","id":"fVr0HkECAAAAAAAA","
|
105
|
-
do my habits have to do with my happiness.mp4","id":"fVr0HkICAAAAAAAA","
|
106
|
-
does increasing my energy have to do with happiness.mp4","id":"fVr0HkMCAAAAAAAA","
|
107
|
-
is prayer.mp4","id":"fVr0HkQCAAAAAAAA","
|
108
|
-
is the purpose of prayer.mp4","id":"fVr0HkUCAAAAAAAA","
|
109
|
-
should I pray.mp4","id":"fVr0HkYCAAAAAAAA","
|
110
|
-
is the benefit of prayer.mp4","id":"fVr0HkcCAAAAAAAA","
|
111
|
-
and prayer.mp4","id":"fVr0HkgCAAAAAAAA","
|
112
|
-
gifts does God give the Catholic Church.mp4","id":"fVr0HkkCAAAAAAAA","
|
113
|
-
there really a small still voice in me and why does it matter.mp4","id":"fVr0HkoCAAAAAAAA","
|
114
|
-
is silence a necessity to creating a relationship with God.mp4","id":"fVr0HksCAAAAAAAA","
|
115
|
-
does God want me to view my life and our world.mp4","id":"fVr0HkwCAAAAAAAA","
|
116
|
-
should I ask the big questions of life.mp4","id":"fVr0Hk4CAAAAAAAA","
|
117
|
-
is my essential purpose.mp4","id":"fVr0Hk8CAAAAAAAA","
|
118
|
-
Progress","transcription":{"
|
119
|
-
Transcriptionist","transcription":{"
|
40
|
+
Transcriptionist","transcription":{"total_length_seconds":6600,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"How
|
41
|
+
can I find success in life.mp4","id":"LufnCVQCAAAAAAAA","audio_length_seconds":300,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVQCAAAAAAAA/content"}]},{"kind":"media","name":"Temptation
|
42
|
+
and willpower.mp4","id":"LufnCVUCAAAAAAAA","audio_length_seconds":540,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVUCAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
43
|
+
does our culture fail to fulfill us.mp4","id":"LufnCVYCAAAAAAAA","audio_length_seconds":240,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVYCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
44
|
+
do I need to do to be happier.mp4","id":"LufnCVcCAAAAAAAA","audio_length_seconds":300,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVcCAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
45
|
+
doesn''t just looking out for myself bring me happiness.mp4","id":"LufnCVgCAAAAAAAA","audio_length_seconds":240,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVgCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
46
|
+
is the classroom of silence.mp4","id":"LufnCVkCAAAAAAAA","audio_length_seconds":420,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVkCAAAAAAAA/content"}]},{"kind":"media","name":"Is
|
47
|
+
it just me or is it hard to pray.mp4","id":"LufnCVoCAAAAAAAA","audio_length_seconds":840,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVoCAAAAAAAA/content"}]},{"kind":"media","name":"Can
|
48
|
+
I know God''s purpose for my life.mp4","id":"LufnCVsCAAAAAAAA","audio_length_seconds":300,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVsCAAAAAAAA/content"}]},{"kind":"media","name":"A
|
49
|
+
story to illustrate what really matters.mp4","id":"LufnCVwCAAAAAAAA","audio_length_seconds":480,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCVwCAAAAAAAA/content"}]},{"kind":"media","name":"How
|
50
|
+
does God speak to us.mp4","id":"LufnCV0CAAAAAAAA","audio_length_seconds":420,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCV0CAAAAAAAA/content"}]},{"kind":"media","name":"Does
|
51
|
+
God want me to be happy.mp4","id":"LufnCV4CAAAAAAAA","audio_length_seconds":240,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCV4CAAAAAAAA/content"}]},{"kind":"media","name":"What
|
52
|
+
does God want from me What is the essence of Christianity.mp4","id":"LufnCV8CAAAAAAAA","audio_length_seconds":240,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCV8CAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
53
|
+
should I seek God''s will for my life.mp4","id":"LufnCWACAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWACAAAAAAAA/content"}]},{"kind":"media","name":"How
|
54
|
+
should I define success.mp4","id":"LufnCWECAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWECAAAAAAAA/content"}]},{"kind":"media","name":"Be
|
55
|
+
not afraid.mp4","id":"LufnCWICAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWICAAAAAAAA/content"}]},{"kind":"media","name":"How
|
56
|
+
does a day of rest bring me closer to God.mp4","id":"LufnCWMCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWMCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
57
|
+
is sin.mp4","id":"LufnCWQCAAAAAAAA","audio_length_seconds":0,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWQCAAAAAAAA/content"}]},{"kind":"media","name":"I''m
|
58
|
+
so busy where will I find time for God in my life.mp4","id":"LufnCWUCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWUCAAAAAAAA/content"}]},{"kind":"media","name":"How
|
59
|
+
can I improve every relationship I have.mp4","id":"LufnCWYCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWYCAAAAAAAA/content"}]},{"kind":"media","name":"The
|
60
|
+
reality of addictions.mp4","id":"LufnCWcCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWcCAAAAAAAA/content"}]},{"kind":"media","name":"Dealing
|
61
|
+
with criticism.mp4","id":"LufnCWgCAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWgCAAAAAAAA/content"}]},{"kind":"media","name":"How
|
62
|
+
can I change my life for the better.mp4","id":"LufnCWkCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWkCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
63
|
+
do my habits have to do with my happiness.mp4","id":"LufnCWoCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWoCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
64
|
+
does increasing my energy have to do with happiness.mp4","id":"LufnCWsCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWsCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
65
|
+
is prayer.mp4","id":"LufnCWwCAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCWwCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
66
|
+
is the purpose of prayer.mp4","id":"LufnCW0CAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCW0CAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
67
|
+
should I pray.mp4","id":"LufnCW4CAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCW4CAAAAAAAA/content"}]},{"kind":"media","name":"What
|
68
|
+
is the benefit of prayer.mp4","id":"LufnCW8CAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCW8CAAAAAAAA/content"}]},{"kind":"media","name":"Temptation
|
69
|
+
and prayer.mp4","id":"LufnCXACAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCXACAAAAAAAA/content"}]},{"kind":"media","name":"What
|
70
|
+
gifts does God give the Catholic Church.mp4","id":"LufnCXECAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCXECAAAAAAAA/content"}]},{"kind":"media","name":"Is
|
71
|
+
there really a small still voice in me and why does it matter.mp4","id":"LufnCXICAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCXICAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
72
|
+
is silence a necessity to creating a relationship with God.mp4","id":"LufnCXMCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCXMCAAAAAAAA/content"}]},{"kind":"media","name":"How
|
73
|
+
does God want me to view my life and our world.mp4","id":"LufnCXQCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCXQCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
74
|
+
is the Christian life.mp4","id":"LufnCXUCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCXUCAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
75
|
+
should I ask the big questions of life.mp4","id":"LufnCXYCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCXYCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
76
|
+
is my essential purpose.mp4","id":"LufnCXcCAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/LufnCXcCAAAAAAAA/content"}]}]},{"order_number":"TC0451696600","price":10.0000,"status":"Finding
|
77
|
+
Transcriptionist","transcription":{"total_length_seconds":600,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"How
|
78
|
+
can I find success in life.mp4","id":"2FfsGlMCAAAAAAAA","audio_length_seconds":300,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/2FfsGlMCAAAAAAAA/content"}]}]},{"order_number":"TC0130484353","price":10.0000,"status":"Finding
|
79
|
+
Transcriptionist","transcription":{"total_length_seconds":600,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"How
|
80
|
+
can I find success in life.mp4","id":"gQjHB1ICAAAAAAAA","audio_length_seconds":300,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/gQjHB1ICAAAAAAAA/content"}]}]},{"order_number":"TC0001341738","price":10.0000,"status":"Finding
|
81
|
+
Transcriptionist","transcription":{"total_length_seconds":600,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"Ways
|
82
|
+
to Say No (And Still Be Cool).mp4","id":"KnkUAFECAAAAAAAA","audio_length_seconds":0,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/KnkUAFECAAAAAAAA/content"}]}]},{"order_number":"TC0233908691","price":10.0000,"status":"Finding
|
83
|
+
Transcriptionist","transcription":{"total_length_seconds":600,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"http://www.youtube.com/watch?feature=player_embedded&v=PJXCp9C380c","id":"0ynxDVACAAAAAAAA","links":[]}]},{"order_number":"TC0519330429","price":10.0000,"status":"Finding
|
84
|
+
Transcriptionist","transcription":{"total_length_seconds":600,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"How
|
85
|
+
can I find success in life.mp4","id":"fVr0HiwCAAAAAAAA","audio_length_seconds":300,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HiwCAAAAAAAA/content"}]},{"kind":"media","name":"http://www.youtube.com/watch?feature=player_embedded&v=fPZlcAhCBSY","id":"fVr0Hi0CAAAAAAAA","links":[]},{"kind":"media","name":"Why
|
86
|
+
does our culture fail to fulfill us.mp4","id":"fVr0Hi4CAAAAAAAA","audio_length_seconds":240,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0Hi4CAAAAAAAA/content"}]},{"kind":"media","name":"What
|
87
|
+
do I need to do to be happier.mp4","id":"fVr0Hi8CAAAAAAAA","audio_length_seconds":300,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0Hi8CAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
88
|
+
doesn''t just looking out for myself bring me happiness.mp4","id":"fVr0HjACAAAAAAAA","audio_length_seconds":240,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjACAAAAAAAA/content"}]},{"kind":"media","name":"What
|
89
|
+
is the classroom of silence.mp4","id":"fVr0HjECAAAAAAAA","audio_length_seconds":420,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjECAAAAAAAA/content"}]},{"kind":"media","name":"Is
|
90
|
+
it just me or is it hard to pray.mp4","id":"fVr0HjICAAAAAAAA","audio_length_seconds":604,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjICAAAAAAAA/content"}]},{"kind":"media","name":"Can
|
91
|
+
I know God''s purpose for my life.mp4","id":"fVr0HjMCAAAAAAAA","audio_length_seconds":300,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjMCAAAAAAAA/content"}]},{"kind":"media","name":"http://www.youtube.com/watch?feature=player_embedded&v=-2wCh_9EfuU","id":"fVr0HjQCAAAAAAAA","links":[]},{"kind":"media","name":"How
|
92
|
+
does God speak to us.mp4","id":"fVr0HjUCAAAAAAAA","audio_length_seconds":420,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjUCAAAAAAAA/content"}]},{"kind":"media","name":"Does
|
93
|
+
God want me to be happy.mp4","id":"fVr0HjYCAAAAAAAA","audio_length_seconds":240,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjYCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
94
|
+
does God want from me What is the essence of Christianity.mp4","id":"fVr0HjcCAAAAAAAA","audio_length_seconds":240,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjcCAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
95
|
+
should I seek God''s will for my life.mp4","id":"fVr0HjgCAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjgCAAAAAAAA/content"}]},{"kind":"media","name":"How
|
96
|
+
should I define success.mp4","id":"fVr0HjkCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjkCAAAAAAAA/content"}]},{"kind":"media","name":"Be
|
97
|
+
not afraid.mp4","id":"fVr0HjoCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjoCAAAAAAAA/content"}]},{"kind":"media","name":"How
|
98
|
+
does a day of rest bring me closer to God.mp4","id":"fVr0HjsCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjsCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
99
|
+
is sin.mp4","id":"fVr0HjwCAAAAAAAA","audio_length_seconds":0,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HjwCAAAAAAAA/content"}]},{"kind":"media","name":"I''m
|
100
|
+
so busy where will I find time for God in my life.mp4","id":"fVr0Hj0CAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0Hj0CAAAAAAAA/content"}]},{"kind":"media","name":"How
|
101
|
+
can I improve every relationship I have.mp4","id":"fVr0Hj4CAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0Hj4CAAAAAAAA/content"}]},{"kind":"media","name":"The
|
102
|
+
reality of addictions.mp4","id":"fVr0Hj8CAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0Hj8CAAAAAAAA/content"}]},{"kind":"media","name":"Dealing
|
103
|
+
with criticism.mp4","id":"fVr0HkACAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkACAAAAAAAA/content"}]},{"kind":"media","name":"How
|
104
|
+
can I change my life for the better.mp4","id":"fVr0HkECAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkECAAAAAAAA/content"}]},{"kind":"media","name":"What
|
105
|
+
do my habits have to do with my happiness.mp4","id":"fVr0HkICAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkICAAAAAAAA/content"}]},{"kind":"media","name":"What
|
106
|
+
does increasing my energy have to do with happiness.mp4","id":"fVr0HkMCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkMCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
107
|
+
is prayer.mp4","id":"fVr0HkQCAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkQCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
108
|
+
is the purpose of prayer.mp4","id":"fVr0HkUCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkUCAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
109
|
+
should I pray.mp4","id":"fVr0HkYCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkYCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
110
|
+
is the benefit of prayer.mp4","id":"fVr0HkcCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkcCAAAAAAAA/content"}]},{"kind":"media","name":"Temptation
|
111
|
+
and prayer.mp4","id":"fVr0HkgCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkgCAAAAAAAA/content"}]},{"kind":"media","name":"What
|
112
|
+
gifts does God give the Catholic Church.mp4","id":"fVr0HkkCAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkkCAAAAAAAA/content"}]},{"kind":"media","name":"Is
|
113
|
+
there really a small still voice in me and why does it matter.mp4","id":"fVr0HkoCAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkoCAAAAAAAA/content"}]},{"kind":"media","name":"Why
|
114
|
+
is silence a necessity to creating a relationship with God.mp4","id":"fVr0HksCAAAAAAAA","audio_length_seconds":60,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HksCAAAAAAAA/content"}]},{"kind":"media","name":"How
|
115
|
+
does God want me to view my life and our world.mp4","id":"fVr0HkwCAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0HkwCAAAAAAAA/content"}]},{"kind":"media","name":"http://www.youtube.com/watch?feature=player_embedded&v=K7vqz8BEb6E","id":"fVr0Hk0CAAAAAAAA","links":[]},{"kind":"media","name":"Why
|
116
|
+
should I ask the big questions of life.mp4","id":"fVr0Hk4CAAAAAAAA","audio_length_seconds":180,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0Hk4CAAAAAAAA/content"}]},{"kind":"media","name":"What
|
117
|
+
is my essential purpose.mp4","id":"fVr0Hk8CAAAAAAAA","audio_length_seconds":120,"links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/fVr0Hk8CAAAAAAAA/content"}]}]},{"order_number":"TC0198249254","price":10.0000,"status":"In
|
118
|
+
Progress","transcription":{"total_length_seconds":600,"verbatim":false,"timestamps":false},"comments":[],"attachments":[]},{"order_number":"TC0083655631","price":110.0000,"status":"Finding
|
119
|
+
Transcriptionist","transcription":{"total_length_seconds":6600,"verbatim":false,"timestamps":false},"comments":[],"attachments":[]}]}'
|
120
120
|
http_version:
|
121
121
|
recorded_at: Thu, 12 Sep 2013 00:01:11 GMT
|
122
122
|
recorded_with: VCR 2.5.0
|
@@ -37,7 +37,7 @@ http_interactions:
|
|
37
37
|
body:
|
38
38
|
encoding: US-ASCII
|
39
39
|
string: ! '{"order_number":"TC0233908691","client_ref":"XC123","price":10.0000,"status":"Finding
|
40
|
-
Transcriptionist","transcription":{"
|
40
|
+
Transcriptionist","transcription":{"total_length_seconds":600,"verbatim":false,"timestamps":false},"comments":[{"by":"Admin
|
41
41
|
Admin","timestamp":"2013-09-06T20:05:29.663"}],"attachments":[{"kind":"media","name":"http://www.youtube.com/watch?feature=player_embedded&v=PJXCp9C380c","id":"0ynxDVACAAAAAAAA","links":[]}]}'
|
42
42
|
http_version:
|
43
43
|
recorded_at: Wed, 11 Sep 2013 00:42:52 GMT
|
@@ -37,18 +37,18 @@ http_interactions:
|
|
37
37
|
body:
|
38
38
|
encoding: US-ASCII
|
39
39
|
string: ! '{"total_count":77,"results_per_page":8,"page":2,"orders":[{"order_number":"TC0229215557","price":99.0000,"status":"Finding
|
40
|
-
Transcriptionist","transcription":{"
|
41
|
-
Transcriptionist","transcription":{"
|
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
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
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
44
|
Translator","translation":{"total_word_count":0,"source_language_code":"es","destination_language_code":"en"},"comments":[],"attachments":[{"kind":"media","name":"async
|
45
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":{"
|
46
|
+
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
|
47
47
|
Away.mp3","id":"b6JOFmgAAAAAAAAA","links":[{"rel":"content","href":"https://www.revtrunk.com/api/v1/attachments/b6JOFmgAAAAAAAAA/content"}]},{"kind":"media","name":"async
|
48
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":{"
|
50
|
-
throughput only via completed jobs.sql","id":"KNSsFmUAAAAAAAAA","
|
51
|
-
whole wip report by completed jobs.sql","id":"KNSsFmYAAAAAAAAA","
|
49
|
+
Transcriptionist","transcription":{"total_length_seconds":1980,"verbatim":false,"timestamps":false},"comments":[],"attachments":[{"kind":"media","name":"calculate
|
50
|
+
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
|
51
|
+
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"}]}]},{"order_number":"TR0059901137","price":124.0000,"status":"Preparing
|
52
52
|
for mailing","translation":{"total_word_count":0,"source_language_code":"es","destination_language_code":"en"},"comments":[],"attachments":[{"kind":"media","name":"async
|
53
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
54
|
Reviewer","translation":{"total_word_count":0,"source_language_code":"ar","destination_language_code":"en"},"comments":[],"attachments":[{"kind":"media","name":"calculate
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://www.revtrunk.com/api/v1/orders
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"payment":{"type":"AccountBalance"
|
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
9
|
work quickly"}'
|
10
10
|
headers:
|
11
11
|
Content-Type:
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://www.revtrunk.com/api/v1/orders
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"payment":{"type":"AccountBalance"
|
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
9
|
work quickly"}'
|
10
10
|
headers:
|
11
11
|
Content-Type:
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://www.revtrunk.com/api/v1/orders
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ! '{"payment":{"type":"
|
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
9
|
work quickly"}'
|
10
10
|
headers:
|
11
11
|
Content-Type:
|
@@ -26,20 +26,20 @@ http_interactions:
|
|
26
26
|
Expires:
|
27
27
|
- '-1'
|
28
28
|
Location:
|
29
|
-
- https://www.revtrunk.com/api/v1/orders/
|
29
|
+
- https://www.revtrunk.com/api/v1/orders/TC0406615008
|
30
30
|
Server:
|
31
31
|
- Microsoft-IIS/7.5
|
32
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"]'
|
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
34
|
X-Powered-By:
|
35
35
|
- ASP.NET
|
36
36
|
Date:
|
37
|
-
- Mon, 16 Sep 2013
|
37
|
+
- Mon, 16 Sep 2013 23:30:37 GMT
|
38
38
|
Content-Length:
|
39
39
|
- '0'
|
40
40
|
body:
|
41
41
|
encoding: US-ASCII
|
42
42
|
string: ''
|
43
43
|
http_version:
|
44
|
-
recorded_at: Mon, 16 Sep 2013
|
44
|
+
recorded_at: Mon, 16 Sep 2013 23:30:36 GMT
|
45
45
|
recorded_with: VCR 2.5.0
|
@@ -13,7 +13,7 @@ describe 'GET /attachments/{id}' do
|
|
13
13
|
attachment.id.must_equal 'LufnCVQCAAAAAAAA'
|
14
14
|
attachment.name.must_equal 'How can I find success in life.mp4'
|
15
15
|
attachment.kind.must_equal 'media'
|
16
|
-
attachment.
|
16
|
+
attachment.audio_length_seconds.must_equal 300
|
17
17
|
attachment.links.must_be_instance_of Array
|
18
18
|
attachment.links.size.must_equal 1
|
19
19
|
attachment.links.first.rel.must_equal 'content'
|
@@ -39,7 +39,7 @@ describe 'GET /orders/{order_num}' do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'must have transcription info' do
|
42
|
-
order.transcription.
|
42
|
+
order.transcription.total_length_seconds.must_equal 600
|
43
43
|
order.transcription.verbatim.must_equal false
|
44
44
|
order.transcription.timestamps.must_equal false
|
45
45
|
end
|
@@ -11,18 +11,18 @@ describe 'OrderRequest' do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'defaults to normal priority' do
|
14
|
-
order = Rev::OrderRequest.new(
|
14
|
+
order = Rev::OrderRequest.new({})
|
15
15
|
order.priority.must_equal Rev::OrderRequest::PRIORITY[:normal]
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'accepts priority during init' do
|
19
19
|
priority = Rev::OrderRequest::PRIORITY[:time_insensitivie]
|
20
|
-
order = Rev::OrderRequest.new(
|
20
|
+
order = Rev::OrderRequest.new({ 'priority' => priority })
|
21
21
|
order.priority.must_equal priority
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'has caption options' do
|
25
|
-
order = Rev::OrderRequest.new(
|
25
|
+
order = Rev::OrderRequest.new({})
|
26
26
|
order.must_respond_to :caption_options
|
27
27
|
end
|
28
28
|
|
@@ -5,7 +5,7 @@ describe 'Order' do
|
|
5
5
|
Rev::Order.new (
|
6
6
|
{ 'attachments' => { },
|
7
7
|
'comments' => {},
|
8
|
-
'caption' => { '
|
8
|
+
'caption' => { 'total_length_seconds' => 300 }
|
9
9
|
}
|
10
10
|
)
|
11
11
|
}
|
@@ -49,9 +49,9 @@ describe 'Order' do
|
|
49
49
|
end # Attachments
|
50
50
|
|
51
51
|
describe 'CaptionInfo' do
|
52
|
-
it 'has
|
52
|
+
it 'has total_length_seconds' do
|
53
53
|
info = Rev::CaptionInfo.new({})
|
54
|
-
assert_respond_to info, '
|
54
|
+
assert_respond_to info, 'total_length_seconds'
|
55
55
|
end
|
56
56
|
end # CaptionInfo
|
57
57
|
end
|
@@ -13,20 +13,11 @@ describe 'POST /orders' do
|
|
13
13
|
:country_alpha2 => 'US'
|
14
14
|
)}
|
15
15
|
|
16
|
-
let(:credit_card) { Rev::CreditCard.new(
|
17
|
-
:number => '4111111111111111',
|
18
|
-
:expiration_month => 9,
|
19
|
-
:expiration_year => 2023,
|
20
|
-
:cardholder => 'Joe Smith',
|
21
|
-
:billing_address => billing_address
|
22
|
-
)}
|
23
|
-
let(:cc_payment) { Rev::Payment.new(Rev::Payment::TYPES[:credit_card], credit_card) }
|
24
|
-
let(:saved_cc_payment) { Rev::Payment.new(Rev::Payment::TYPES[:credit_card], :saved_id => 1) }
|
25
16
|
let(:balance_payment) { Rev::Payment.new(Rev::Payment::TYPES[:account_balance]) }
|
26
17
|
let(:transcription_inputs) {
|
27
18
|
inputs = []
|
28
19
|
inputs << Rev::Input.new(:external_link => 'http://www.youtube.com/watch?v=UF8uR6Z6KLc')
|
29
|
-
inputs << Rev::Input.new(:
|
20
|
+
inputs << Rev::Input.new(:audio_length_seconds => 900, :external_link => 'https://vimeo.com/7976699')
|
30
21
|
}
|
31
22
|
let(:translation_inputs) {
|
32
23
|
inputs = []
|
@@ -34,7 +25,7 @@ describe 'POST /orders' do
|
|
34
25
|
}
|
35
26
|
let(:caption_inputs) {
|
36
27
|
inputs = []
|
37
|
-
inputs << Rev::Input.new(:external_link => 'http://www.youtube.com/watch?v=UF8uR6Z6KLc')
|
28
|
+
inputs << Rev::Input.new(:video_length_seconds => 900, :external_link => 'http://www.youtube.com/watch?v=UF8uR6Z6KLc')
|
38
29
|
}
|
39
30
|
let(:transcription_options) { Rev::TranscriptionOptions.new(transcription_inputs,
|
40
31
|
:verbatim => true, :timestamps => true) }
|
@@ -44,87 +35,28 @@ describe 'POST /orders' do
|
|
44
35
|
Rev::CaptionOptions.new(caption_inputs, :output_file_formats => ['SubRip'])
|
45
36
|
}
|
46
37
|
|
47
|
-
it 'must
|
48
|
-
VCR.insert_cassette '
|
49
|
-
|
50
|
-
request = Rev::OrderRequest.new(
|
51
|
-
cc_payment,
|
52
|
-
:transcription_options => transcription_options,
|
53
|
-
:client_ref => 'XB432423',
|
54
|
-
:comment => 'Please work quickly',
|
55
|
-
:notification => Rev::Notification.new('http://www.example.com', Rev::Notification::LEVELS[:detailed])
|
56
|
-
)
|
57
|
-
|
58
|
-
new_order_num = client.submit_order(request)
|
59
|
-
|
60
|
-
new_order_num.must_equal 'TC0520815415'
|
61
|
-
expected_body = {
|
62
|
-
'payment' => {
|
63
|
-
'type' => 'CreditCard',
|
64
|
-
'credit_card' => {
|
65
|
-
'number' => '4111111111111111',
|
66
|
-
'expiration_month' => 9,
|
67
|
-
'expiration_year' => 2023,
|
68
|
-
'cardholder' => 'Joe Smith',
|
69
|
-
'billing_address' => {
|
70
|
-
'street' => '123 Pine Lane',
|
71
|
-
'street2' => 'Apt D',
|
72
|
-
'city' => 'MyTown',
|
73
|
-
'state' => 'MN',
|
74
|
-
'zip' => '12345',
|
75
|
-
'country_alpha2' => 'US'
|
76
|
-
}
|
77
|
-
}
|
78
|
-
},
|
79
|
-
'transcription_options' => {
|
80
|
-
'inputs'=> [
|
81
|
-
{ 'external_link' => 'http://www.youtube.com/watch?v=UF8uR6Z6KLc' },
|
82
|
-
{ 'audio_length' => 15, 'external_link' => 'https://vimeo.com/7976699' }
|
83
|
-
],
|
84
|
-
'verbatim' => true,
|
85
|
-
'timestamps' => true
|
86
|
-
},
|
87
|
-
'client_ref' => 'XB432423',
|
88
|
-
'comment' => 'Please work quickly',
|
89
|
-
'priority' => Rev::OrderRequest::PRIORITY[:normal],
|
90
|
-
'notification' => {
|
91
|
-
'url' => 'http://www.example.com',
|
92
|
-
'level' => 'Detailed'
|
93
|
-
}
|
94
|
-
}
|
95
|
-
assert_requested(:post, /.*\/orders/, :times => 1) do |req|
|
96
|
-
req.headers['Content-Type'] == 'application/json'
|
97
|
-
actual_body = JSON.load req.body
|
98
|
-
actual_body.must_equal expected_body
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
it 'must place order using saved credit card' do
|
103
|
-
VCR.insert_cassette 'submit_tc_order_with_saved_cc'
|
38
|
+
it 'must place order using account balance' do
|
39
|
+
VCR.insert_cassette 'submit_tc_order_with_account_balance'
|
104
40
|
|
105
41
|
request = Rev::OrderRequest.new(
|
106
|
-
saved_cc_payment,
|
107
42
|
:transcription_options => transcription_options
|
108
43
|
)
|
109
44
|
|
110
45
|
new_order_num = client.submit_order(request)
|
111
46
|
|
112
|
-
new_order_num.must_equal '
|
47
|
+
new_order_num.must_equal 'TC0406615008'
|
113
48
|
expected_body = {
|
114
49
|
'payment' => {
|
115
|
-
'type' => '
|
116
|
-
'credit_card' => {
|
117
|
-
'saved_id' => 1
|
118
|
-
}
|
50
|
+
'type' => 'AccountBalance'
|
119
51
|
},
|
120
52
|
'priority' => Rev::OrderRequest::PRIORITY[:normal],
|
121
53
|
'transcription_options' => {
|
122
54
|
'inputs' => [
|
123
55
|
{ 'external_link' => 'http://www.youtube.com/watch?v=UF8uR6Z6KLc' },
|
124
|
-
{ 'external_link' => 'https://vimeo.com/7976699', '
|
56
|
+
{ 'external_link' => 'https://vimeo.com/7976699', 'audio_length_seconds' => 900 }
|
125
57
|
],
|
126
|
-
'verbatim'=>true,
|
127
|
-
'timestamps'=>true
|
58
|
+
'verbatim' => true,
|
59
|
+
'timestamps' => true
|
128
60
|
}
|
129
61
|
}
|
130
62
|
assert_requested(:post, /.*\/orders/, :times => 1) do |req|
|
@@ -134,30 +66,29 @@ describe 'POST /orders' do
|
|
134
66
|
end
|
135
67
|
end
|
136
68
|
|
137
|
-
it 'must
|
138
|
-
VCR.insert_cassette '
|
69
|
+
it 'must default to account balance if payment property not set' do
|
70
|
+
VCR.insert_cassette 'submit_tc_order_without_specifying_payment'
|
139
71
|
|
140
72
|
request = Rev::OrderRequest.new(
|
141
|
-
|
142
|
-
:transcription_options => transcription_options
|
73
|
+
:transcription_options => transcription_options
|
143
74
|
)
|
144
75
|
|
145
76
|
new_order_num = client.submit_order(request)
|
146
77
|
|
147
78
|
new_order_num.must_equal 'TC0406615008'
|
148
79
|
expected_body = {
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
80
|
+
'payment' => {
|
81
|
+
'type' => 'AccountBalance'
|
82
|
+
},
|
83
|
+
'priority' => Rev::OrderRequest::PRIORITY[:normal],
|
84
|
+
'transcription_options' => {
|
85
|
+
'inputs' => [
|
86
|
+
{ 'external_link' => 'http://www.youtube.com/watch?v=UF8uR6Z6KLc' },
|
87
|
+
{ 'external_link' => 'https://vimeo.com/7976699', 'audio_length_seconds' => 900 }
|
88
|
+
],
|
89
|
+
'verbatim' => true,
|
90
|
+
'timestamps' => true
|
91
|
+
}
|
161
92
|
}
|
162
93
|
assert_requested(:post, /.*\/orders/, :times => 1) do |req|
|
163
94
|
req.headers['Content-Type'] == 'application/json'
|
@@ -171,7 +102,6 @@ describe 'POST /orders' do
|
|
171
102
|
|
172
103
|
# example - missing transcription options
|
173
104
|
request = Rev::OrderRequest.new(
|
174
|
-
balance_payment
|
175
105
|
)
|
176
106
|
|
177
107
|
action = lambda { client.submit_order(request) }
|
@@ -184,7 +114,6 @@ describe 'POST /orders' do
|
|
184
114
|
VCR.insert_cassette 'submit_tr_order'
|
185
115
|
|
186
116
|
request = Rev::OrderRequest.new(
|
187
|
-
balance_payment,
|
188
117
|
:translation_options => translation_options
|
189
118
|
)
|
190
119
|
|
@@ -214,7 +143,7 @@ describe 'POST /orders' do
|
|
214
143
|
it 'must submit caption order with options' do
|
215
144
|
VCR.insert_cassette 'submit_cp_order'
|
216
145
|
|
217
|
-
request = Rev::OrderRequest.new(
|
146
|
+
request = Rev::OrderRequest.new(:caption_options => caption_options)
|
218
147
|
|
219
148
|
new_order_num = client.submit_order(request)
|
220
149
|
|
@@ -226,7 +155,7 @@ describe 'POST /orders' do
|
|
226
155
|
'priority' => Rev::OrderRequest::PRIORITY[:normal],
|
227
156
|
'caption_options' => {
|
228
157
|
'inputs'=> [
|
229
|
-
{ 'external_link' => 'http://www.youtube.com/watch?v=UF8uR6Z6KLc' }
|
158
|
+
{ 'video_length_seconds' => 900, 'external_link' => 'http://www.youtube.com/watch?v=UF8uR6Z6KLc' }
|
230
159
|
],
|
231
160
|
'output_file_formats' => [Rev::CaptionOptions::OUTPUT_FILE_FORMATS[:subrip]]
|
232
161
|
}
|
metadata
CHANGED
@@ -1,155 +1,155 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rev-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rev.com, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.11'
|
20
|
-
- -
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 0.11.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ~>
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0.11'
|
30
|
-
- -
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.11.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: webmock
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - ~>
|
37
|
+
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '1.11'
|
40
|
-
- - ~>
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.11.0
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '1.11'
|
50
|
-
- - ~>
|
50
|
+
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.11.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: vcr
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - ~>
|
57
|
+
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '2.6'
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 2.6.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '2.6'
|
70
|
-
- - ~>
|
70
|
+
- - "~>"
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 2.6.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: turn
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - ~>
|
77
|
+
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0.9'
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.9.6
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0.9'
|
90
|
-
- - ~>
|
90
|
+
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 0.9.6
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: rake
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - ~>
|
97
|
+
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '10.1'
|
100
|
-
- -
|
100
|
+
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 10.1.0
|
103
103
|
type: :development
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - ~>
|
107
|
+
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '10.1'
|
110
|
-
- -
|
110
|
+
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 10.1.0
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: yard
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- - ~>
|
117
|
+
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
type: :development
|
121
121
|
prerelease: false
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- - ~>
|
124
|
+
- - "~>"
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: redcarpet
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- -
|
131
|
+
- - ">="
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- -
|
138
|
+
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: rubygems-tasks
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- - ~>
|
145
|
+
- - "~>"
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
type: :development
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- - ~>
|
152
|
+
- - "~>"
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '0'
|
155
155
|
description: Communicate with Rev.com API using plain Ruby objects without bothering
|
@@ -159,11 +159,11 @@ executables: []
|
|
159
159
|
extensions: []
|
160
160
|
extra_rdoc_files: []
|
161
161
|
files:
|
162
|
-
- .coveralls.yml
|
163
|
-
- .gitignore
|
164
|
-
- .ruby-gemset
|
165
|
-
- .ruby-version
|
166
|
-
- .travis.yml
|
162
|
+
- ".coveralls.yml"
|
163
|
+
- ".gitignore"
|
164
|
+
- ".ruby-gemset"
|
165
|
+
- ".ruby-version"
|
166
|
+
- ".travis.yml"
|
167
167
|
- Gemfile
|
168
168
|
- Gemfile.lock
|
169
169
|
- LICENSE
|
@@ -198,9 +198,8 @@ files:
|
|
198
198
|
- spec/fixtures/api_cassettes/not_found_order.yml
|
199
199
|
- spec/fixtures/api_cassettes/submit_cp_order.yml
|
200
200
|
- spec/fixtures/api_cassettes/submit_tc_order_with_account_balance.yml
|
201
|
-
- spec/fixtures/api_cassettes/submit_tc_order_with_cc_and_all_attributes.yml
|
202
201
|
- spec/fixtures/api_cassettes/submit_tc_order_with_invalid_request.yml
|
203
|
-
- spec/fixtures/api_cassettes/
|
202
|
+
- spec/fixtures/api_cassettes/submit_tc_order_without_specifying_payment.yml
|
204
203
|
- spec/fixtures/api_cassettes/submit_tr_order.yml
|
205
204
|
- spec/fixtures/api_cassettes/unauthorized.yml
|
206
205
|
- spec/fixtures/api_cassettes/upload_input.yml
|
@@ -230,17 +229,17 @@ require_paths:
|
|
230
229
|
- spec
|
231
230
|
required_ruby_version: !ruby/object:Gem::Requirement
|
232
231
|
requirements:
|
233
|
-
- -
|
232
|
+
- - ">="
|
234
233
|
- !ruby/object:Gem::Version
|
235
234
|
version: 1.9.3
|
236
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
236
|
requirements:
|
238
|
-
- -
|
237
|
+
- - ">="
|
239
238
|
- !ruby/object:Gem::Version
|
240
239
|
version: '0'
|
241
240
|
requirements: []
|
242
241
|
rubyforge_project:
|
243
|
-
rubygems_version: 2.
|
242
|
+
rubygems_version: 2.2.2
|
244
243
|
signing_key:
|
245
244
|
specification_version: 4
|
246
245
|
summary: Ruby wrapper for Rev.com API
|
@@ -264,9 +263,8 @@ test_files:
|
|
264
263
|
- spec/fixtures/api_cassettes/not_found_order.yml
|
265
264
|
- spec/fixtures/api_cassettes/submit_cp_order.yml
|
266
265
|
- spec/fixtures/api_cassettes/submit_tc_order_with_account_balance.yml
|
267
|
-
- spec/fixtures/api_cassettes/submit_tc_order_with_cc_and_all_attributes.yml
|
268
266
|
- spec/fixtures/api_cassettes/submit_tc_order_with_invalid_request.yml
|
269
|
-
- spec/fixtures/api_cassettes/
|
267
|
+
- spec/fixtures/api_cassettes/submit_tc_order_without_specifying_payment.yml
|
270
268
|
- spec/fixtures/api_cassettes/submit_tr_order.yml
|
271
269
|
- spec/fixtures/api_cassettes/unauthorized.yml
|
272
270
|
- spec/fixtures/api_cassettes/upload_input.yml
|
@@ -1,46 +0,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":"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
|