All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
delete_real_time_transcription | DELETE /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete a specific transcription |
get_real_time_transcription | GET /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Retrieve a specific transcription |
list_real_time_transcriptions | GET /accounts/{accountId}/calls/{callId}/transcriptions | Enumerate transcriptions made with StartTranscription |
delete_real_time_transcription(account_id, call_id, transcription_id)
Delete a specific transcription
Delete the specified transcription that was created on this call via startTranscription. Note: After the deletion is requested and a 200
is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
require 'time'
require 'bandwidth-sdk'
# setup authorization
Bandwidth.configure do |config|
# Configure HTTP basic authorization: Basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Bandwidth::TranscriptionsApi.new
account_id = '9900000' # String | Your Bandwidth Account ID.
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Call ID.
transcription_id = 't-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Transcription ID.
begin
# Delete a specific transcription
api_instance.delete_real_time_transcription(account_id, call_id, transcription_id)
rescue Bandwidth::ApiError => e
puts "Error when calling TranscriptionsApi->delete_real_time_transcription: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_real_time_transcription_with_http_info(account_id, call_id, transcription_id)
begin
# Delete a specific transcription
data, status_code, headers = api_instance.delete_real_time_transcription_with_http_info(account_id, call_id, transcription_id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue Bandwidth::ApiError => e
puts "Error when calling TranscriptionsApi->delete_real_time_transcription_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_id | String | Your Bandwidth Account ID. | |
call_id | String | Programmable Voice API Call ID. | |
transcription_id | String | Programmable Voice API Transcription ID. |
nil (empty response body)
- Content-Type: Not defined
- Accept: application/json
get_real_time_transcription(account_id, call_id, transcription_id)
Retrieve a specific transcription
Retrieve the specified transcription that was created on this call via startTranscription.
require 'time'
require 'bandwidth-sdk'
# setup authorization
Bandwidth.configure do |config|
# Configure HTTP basic authorization: Basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Bandwidth::TranscriptionsApi.new
account_id = '9900000' # String | Your Bandwidth Account ID.
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Call ID.
transcription_id = 't-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Transcription ID.
begin
# Retrieve a specific transcription
result = api_instance.get_real_time_transcription(account_id, call_id, transcription_id)
p result
rescue Bandwidth::ApiError => e
puts "Error when calling TranscriptionsApi->get_real_time_transcription: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_real_time_transcription_with_http_info(account_id, call_id, transcription_id)
begin
# Retrieve a specific transcription
data, status_code, headers = api_instance.get_real_time_transcription_with_http_info(account_id, call_id, transcription_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <CallTranscriptionResponse>
rescue Bandwidth::ApiError => e
puts "Error when calling TranscriptionsApi->get_real_time_transcription_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_id | String | Your Bandwidth Account ID. | |
call_id | String | Programmable Voice API Call ID. | |
transcription_id | String | Programmable Voice API Transcription ID. |
- Content-Type: Not defined
- Accept: application/json
<Array> list_real_time_transcriptions(account_id, call_id)
Enumerate transcriptions made with StartTranscription
Enumerates the transcriptions created on this call via startTranscription.
require 'time'
require 'bandwidth-sdk'
# setup authorization
Bandwidth.configure do |config|
# Configure HTTP basic authorization: Basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Bandwidth::TranscriptionsApi.new
account_id = '9900000' # String | Your Bandwidth Account ID.
call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Call ID.
begin
# Enumerate transcriptions made with StartTranscription
result = api_instance.list_real_time_transcriptions(account_id, call_id)
p result
rescue Bandwidth::ApiError => e
puts "Error when calling TranscriptionsApi->list_real_time_transcriptions: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(<Array>, Integer, Hash)> list_real_time_transcriptions_with_http_info(account_id, call_id)
begin
# Enumerate transcriptions made with StartTranscription
data, status_code, headers = api_instance.list_real_time_transcriptions_with_http_info(account_id, call_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <Array<CallTranscriptionMetadata>>
rescue Bandwidth::ApiError => e
puts "Error when calling TranscriptionsApi->list_real_time_transcriptions_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_id | String | Your Bandwidth Account ID. | |
call_id | String | Programmable Voice API Call ID. |
Array<CallTranscriptionMetadata>
- Content-Type: Not defined
- Accept: application/json