All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DeleteRecording | DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Delete Recording |
DeleteRecordingMedia | DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Delete Recording Media |
DeleteRecordingTranscription | DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription |
DownloadCallRecording | GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Download Recording |
GetCallRecording | GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Get Call Recording |
GetRecordingTranscription | GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Get Transcription |
ListAccountCallRecordings | GET /accounts/{accountId}/recordings | Get Call Recordings |
ListCallRecordings | GET /accounts/{accountId}/calls/{callId}/recordings | List Call Recordings |
TranscribeCallRecording | POST /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Create Transcription Request |
UpdateCallRecordingState | PUT /accounts/{accountId}/calls/{callId}/recording | Update Recording |
void DeleteRecording (string accountId, string callId, string recordingId)
Delete Recording
Delete the recording information, media and transcription. Note: After the deletion is requested and a 204
is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class DeleteRecordingExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
var recordingId = r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Recording ID.
try
{
// Delete Recording
apiInstance.DeleteRecording(accountId, callId, recordingId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.DeleteRecording: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete Recording
apiInstance.DeleteRecordingWithHttpInfo(accountId, callId, recordingId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.DeleteRecordingWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
callId | string | Programmable Voice API Call ID. | |
recordingId | string | Programmable Voice API Recording ID. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Recording was deleted. | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteRecordingMedia (string accountId, string callId, string recordingId)
Delete Recording Media
Deletes the specified recording's media.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class DeleteRecordingMediaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
var recordingId = r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Recording ID.
try
{
// Delete Recording Media
apiInstance.DeleteRecordingMedia(accountId, callId, recordingId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.DeleteRecordingMedia: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete Recording Media
apiInstance.DeleteRecordingMediaWithHttpInfo(accountId, callId, recordingId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.DeleteRecordingMediaWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
callId | string | Programmable Voice API Call ID. | |
recordingId | string | Programmable Voice API Recording ID. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | The recording media was successfully deleted. | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteRecordingTranscription (string accountId, string callId, string recordingId)
Delete Transcription
Deletes the specified recording's transcription. Note: After the deletion is requested and a 204
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.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class DeleteRecordingTranscriptionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
var recordingId = r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Recording ID.
try
{
// Delete Transcription
apiInstance.DeleteRecordingTranscription(accountId, callId, recordingId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.DeleteRecordingTranscription: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete Transcription
apiInstance.DeleteRecordingTranscriptionWithHttpInfo(accountId, callId, recordingId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.DeleteRecordingTranscriptionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
callId | string | Programmable Voice API Call ID. | |
recordingId | string | Programmable Voice API Recording ID. |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | The transcription was successfully deleted. | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
System.IO.Stream DownloadCallRecording (string accountId, string callId, string recordingId)
Download Recording
Downloads the specified recording.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class DownloadCallRecordingExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
var recordingId = r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Recording ID.
try
{
// Download Recording
System.IO.Stream result = apiInstance.DownloadCallRecording(accountId, callId, recordingId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.DownloadCallRecording: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Download Recording
ApiResponse<System.IO.Stream> response = apiInstance.DownloadCallRecordingWithHttpInfo(accountId, callId, recordingId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.DownloadCallRecordingWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
callId | string | Programmable Voice API Call ID. | |
recordingId | string | Programmable Voice API Recording ID. |
System.IO.Stream
- Content-Type: Not defined
- Accept: audio/vnd.wave, audio/mpeg, application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CallRecordingMetadata GetCallRecording (string accountId, string callId, string recordingId)
Get Call Recording
Returns metadata for the specified recording.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class GetCallRecordingExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
var recordingId = r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Recording ID.
try
{
// Get Call Recording
CallRecordingMetadata result = apiInstance.GetCallRecording(accountId, callId, recordingId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.GetCallRecording: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get Call Recording
ApiResponse<CallRecordingMetadata> response = apiInstance.GetCallRecordingWithHttpInfo(accountId, callId, recordingId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.GetCallRecordingWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
callId | string | Programmable Voice API Call ID. | |
recordingId | string | Programmable Voice API Recording ID. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RecordingTranscriptions GetRecordingTranscription (string accountId, string callId, string recordingId)
Get Transcription
Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while <PlayAudio>
and <SpeakSentence>
transcript will be the second item. During a <Transfer>
the A-leg transcript will be the first item while the B-leg transcript will be the second item.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class GetRecordingTranscriptionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
var recordingId = r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Recording ID.
try
{
// Get Transcription
RecordingTranscriptions result = apiInstance.GetRecordingTranscription(accountId, callId, recordingId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.GetRecordingTranscription: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get Transcription
ApiResponse<RecordingTranscriptions> response = apiInstance.GetRecordingTranscriptionWithHttpInfo(accountId, callId, recordingId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.GetRecordingTranscriptionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
callId | string | Programmable Voice API Call ID. | |
recordingId | string | Programmable Voice API Recording ID. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<CallRecordingMetadata> ListAccountCallRecordings (string accountId, string to = null, string from = null, string minStartTime = null, string maxStartTime = null)
Get Call Recordings
Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class ListAccountCallRecordingsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var to = %2b19195551234; // string | Filter results by the `to` field. (optional)
var from = %2b19195554321; // string | Filter results by the `from` field. (optional)
var minStartTime = 2022-06-21T19:13:21Z; // string | Filter results to recordings which have a `startTime` after or including `minStartTime` (in ISO8601 format). (optional)
var maxStartTime = 2022-06-21T19:13:21Z; // string | Filter results to recordings which have a `startTime` before `maxStartTime` (in ISO8601 format). (optional)
try
{
// Get Call Recordings
List<CallRecordingMetadata> result = apiInstance.ListAccountCallRecordings(accountId, to, from, minStartTime, maxStartTime);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.ListAccountCallRecordings: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get Call Recordings
ApiResponse<List<CallRecordingMetadata>> response = apiInstance.ListAccountCallRecordingsWithHttpInfo(accountId, to, from, minStartTime, maxStartTime);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.ListAccountCallRecordingsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
to | string | Filter results by the `to` field. | [optional] |
from | string | Filter results by the `from` field. | [optional] |
minStartTime | string | Filter results to recordings which have a `startTime` after or including `minStartTime` (in ISO8601 format). | [optional] |
maxStartTime | string | Filter results to recordings which have a `startTime` before `maxStartTime` (in ISO8601 format). | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<CallRecordingMetadata> ListCallRecordings (string accountId, string callId)
List Call Recordings
Returns a (potentially empty) list of metadata for the recordings that took place during the specified call.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class ListCallRecordingsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
try
{
// List Call Recordings
List<CallRecordingMetadata> result = apiInstance.ListCallRecordings(accountId, callId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.ListCallRecordings: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Call Recordings
ApiResponse<List<CallRecordingMetadata>> response = apiInstance.ListCallRecordingsWithHttpInfo(accountId, callId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.ListCallRecordingsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
callId | string | Programmable Voice API Call ID. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void TranscribeCallRecording (string accountId, string callId, string recordingId, TranscribeRecording transcribeRecording)
Create Transcription Request
Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class TranscribeCallRecordingExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
var recordingId = r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Recording ID.
var transcribeRecording = new TranscribeRecording(); // TranscribeRecording |
try
{
// Create Transcription Request
apiInstance.TranscribeCallRecording(accountId, callId, recordingId, transcribeRecording);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.TranscribeCallRecording: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create Transcription Request
apiInstance.TranscribeCallRecordingWithHttpInfo(accountId, callId, recordingId, transcribeRecording);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.TranscribeCallRecordingWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
callId | string | Programmable Voice API Call ID. | |
recordingId | string | Programmable Voice API Recording ID. | |
transcribeRecording | TranscribeRecording |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Transcription was successfully requested. | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UpdateCallRecordingState (string accountId, string callId, UpdateCallRecording updateCallRecording)
Update Recording
Pause or resume a recording on an active phone call.
using System.Collections.Generic;
using System.Diagnostics;
using Bandwidth.Standard.Api;
using Bandwidth.Standard.Client;
using Bandwidth.Standard.Model;
namespace Example
{
public class UpdateCallRecordingStateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost";
// Configure HTTP basic authorization: Basic
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new RecordingsApi(config);
var accountId = 9900000; // string | Your Bandwidth Account ID.
var callId = c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85; // string | Programmable Voice API Call ID.
var updateCallRecording = new UpdateCallRecording(); // UpdateCallRecording |
try
{
// Update Recording
apiInstance.UpdateCallRecordingState(accountId, callId, updateCallRecording);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.UpdateCallRecordingState: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Update Recording
apiInstance.UpdateCallRecordingStateWithHttpInfo(accountId, callId, updateCallRecording);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RecordingsApi.UpdateCallRecordingStateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | Your Bandwidth Account ID. | |
callId | string | Programmable Voice API Call ID. | |
updateCallRecording | UpdateCallRecording |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
405 | Method Not Allowed | - |
415 | Unsupported Media Type | - |
429 | Too Many Requests | * Retry-After - When you should try your request again. |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]