Class: Twilio::REST::Api::V2010::AccountContext::CallContext::TranscriptionList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Api::V2010::AccountContext::CallContext::TranscriptionList
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb
Instance Method Summary collapse
-
#create(name: :unset, track: :unset, status_callback_url: :unset, status_callback_method: :unset, inbound_track_label: :unset, outbound_track_label: :unset, partial_results: :unset, language_code: :unset, transcription_engine: :unset, profanity_filter: :unset, speech_model: :unset, hints: :unset, enable_automatic_punctuation: :unset, intelligence_service: :unset) ⇒ TranscriptionInstance
Create the TranscriptionInstance.
-
#initialize(version, account_sid: nil, call_sid: nil) ⇒ TranscriptionList
constructor
Initialize the TranscriptionList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, account_sid: nil, call_sid: nil) ⇒ TranscriptionList
Initialize the TranscriptionList
29 30 31 32 33 34 35 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb', line 29 def initialize(version, account_sid: nil, call_sid: nil) super(version) # Path Solution @solution = { account_sid: account_sid, call_sid: call_sid } @uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Transcriptions.json" end |
Instance Method Details
#create(name: :unset, track: :unset, status_callback_url: :unset, status_callback_method: :unset, inbound_track_label: :unset, outbound_track_label: :unset, partial_results: :unset, language_code: :unset, transcription_engine: :unset, profanity_filter: :unset, speech_model: :unset, hints: :unset, enable_automatic_punctuation: :unset, intelligence_service: :unset) ⇒ TranscriptionInstance
Create the TranscriptionInstance
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb', line 53 def create( name: :unset, track: :unset, status_callback_url: :unset, status_callback_method: :unset, inbound_track_label: :unset, outbound_track_label: :unset, partial_results: :unset, language_code: :unset, transcription_engine: :unset, profanity_filter: :unset, speech_model: :unset, hints: :unset, enable_automatic_punctuation: :unset, intelligence_service: :unset ) data = Twilio::Values.of({ 'Name' => name, 'Track' => track, 'StatusCallbackUrl' => status_callback_url, 'StatusCallbackMethod' => status_callback_method, 'InboundTrackLabel' => inbound_track_label, 'OutboundTrackLabel' => outbound_track_label, 'PartialResults' => partial_results, 'LanguageCode' => language_code, 'TranscriptionEngine' => transcription_engine, 'ProfanityFilter' => profanity_filter, 'SpeechModel' => speech_model, 'Hints' => hints, 'EnableAutomaticPunctuation' => enable_automatic_punctuation, 'IntelligenceService' => intelligence_service, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.create('POST', @uri, data: data, headers: headers) TranscriptionInstance.new( @version, payload, account_sid: @solution[:account_sid], call_sid: @solution[:call_sid], ) end |
#to_s ⇒ Object
Provide a user friendly representation
106 107 108 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb', line 106 def to_s '#<Twilio.Api.V2010.TranscriptionList>' end |