# ps.module.CallRecordingApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionTeammateTeammateIdCallrecordingGet**](CallRecordingApi.md#apiVersionTeammateTeammateIdCallrecordingGet) | **GET** /api/{version}/teammate/{teammateId}/callrecording | List Call Recording
[**apiVersionTeammateTeammateIdCallrecordingIdDelete**](CallRecordingApi.md#apiVersionTeammateTeammateIdCallrecordingIdDelete) | **DELETE** /api/{version}/teammate/{teammateId}/callrecording/{id} | Delete Call Recording
[**apiVersionTeammateTeammateIdCallrecordingIdGet**](CallRecordingApi.md#apiVersionTeammateTeammateIdCallrecordingIdGet) | **GET** /api/{version}/teammate/{teammateId}/callrecording/{id} | Get Call Recording
[**apiVersionTeammateTeammateIdCallrecordingPost**](CallRecordingApi.md#apiVersionTeammateTeammateIdCallrecordingPost) | **POST** /api/{version}/teammate/{teammateId}/callrecording | Create Call Recording
[**apiVersionTeammateTeammateIdCallrecordingPut**](CallRecordingApi.md#apiVersionTeammateTeammateIdCallrecordingPut) | **PUT** /api/{version}/teammate/{teammateId}/callrecording | Create Call Recording
[**apiVersionTenantTenantIdCallrecordingDelete**](CallRecordingApi.md#apiVersionTenantTenantIdCallrecordingDelete) | **DELETE** /api/{version}/tenant/{tenantId}/callrecording | Tenant Call Recording Delete
[**apiVersionTenantTenantIdCallrecordingEnabledEnablePut**](CallRecordingApi.md#apiVersionTenantTenantIdCallrecordingEnabledEnablePut) | **PUT** /api/{version}/tenant/{tenantId}/callrecording/enabled/{enable} | Tenant Call Recording Enable
[**apiVersionTenantTenantIdCallrecordingGet**](CallRecordingApi.md#apiVersionTenantTenantIdCallrecordingGet) | **GET** /api/{version}/tenant/{tenantId}/callrecording | Tenant Call Recording List
[**apiVersionTenantTenantIdCallrecordingIdDelete**](CallRecordingApi.md#apiVersionTenantTenantIdCallrecordingIdDelete) | **DELETE** /api/{version}/tenant/{tenantId}/callrecording/{id} | Tenant Call Recording Delete

<a name="apiVersionTeammateTeammateIdCallrecordingGet"></a>
# **apiVersionTeammateTeammateIdCallrecordingGet**
> apiVersionTeammateTeammateIdCallrecordingGet(teammateId, version, opts)

List Call Recording

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.CallRecordingApi();
let teammateId = "teammateId_example"; // String | 
let version = "version_example"; // String | 
let opts = { 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionTeammateTeammateIdCallrecordingGet(teammateId, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **version** | **String**|  | 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeammateTeammateIdCallrecordingIdDelete"></a>
# **apiVersionTeammateTeammateIdCallrecordingIdDelete**
> apiVersionTeammateTeammateIdCallrecordingIdDelete(teammateId, id, version)

Delete Call Recording

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.CallRecordingApi();
let teammateId = "teammateId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTeammateTeammateIdCallrecordingIdDelete(teammateId, id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **id** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeammateTeammateIdCallrecordingIdGet"></a>
# **apiVersionTeammateTeammateIdCallrecordingIdGet**
> apiVersionTeammateTeammateIdCallrecordingIdGet(teammateId, id, version)

Get Call Recording

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.CallRecordingApi();
let teammateId = "teammateId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTeammateTeammateIdCallrecordingIdGet(teammateId, id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **id** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTeammateTeammateIdCallrecordingPost"></a>
# **apiVersionTeammateTeammateIdCallrecordingPost**
> apiVersionTeammateTeammateIdCallrecordingPost(teammateIdversion)

Create Call Recording

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.CallRecordingApi();
let teammateId = "teammateId_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTeammateTeammateIdCallrecordingPost(teammateIdversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **version** | **String**|  | 
 **callId** | **String**|  | [optional] 
 **file** | **Blob**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: Not defined

<a name="apiVersionTeammateTeammateIdCallrecordingPut"></a>
# **apiVersionTeammateTeammateIdCallrecordingPut**
> apiVersionTeammateTeammateIdCallrecordingPut(teammateIdversion)

Create Call Recording

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.CallRecordingApi();
let teammateId = "teammateId_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTeammateTeammateIdCallrecordingPut(teammateIdversion, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **teammateId** | **String**|  | 
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreCallRecordingsTenantUpdateCallRecordingQuery**](PhoneSpeakServiceCoreCallRecordingsTenantUpdateCallRecordingQuery.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

<a name="apiVersionTenantTenantIdCallrecordingDelete"></a>
# **apiVersionTenantTenantIdCallrecordingDelete**
> apiVersionTenantTenantIdCallrecordingDelete(tenantId, id, version)

Tenant Call Recording Delete

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.CallRecordingApi();
let tenantId = "tenantId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTenantTenantIdCallrecordingDelete(tenantId, id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **id** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTenantTenantIdCallrecordingEnabledEnablePut"></a>
# **apiVersionTenantTenantIdCallrecordingEnabledEnablePut**
> apiVersionTenantTenantIdCallrecordingEnabledEnablePut(tenantId, enable, version, opts)

Tenant Call Recording Enable

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.CallRecordingApi();
let tenantId = "tenantId_example"; // String | 
let enable = true; // Boolean | 
let version = "version_example"; // String | 
let opts = { 
  'url': "url_example" // String | 
};
apiInstance.apiVersionTenantTenantIdCallrecordingEnabledEnablePut(tenantId, enable, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **enable** | **Boolean**|  | 
 **version** | **String**|  | 
 **url** | **String**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTenantTenantIdCallrecordingGet"></a>
# **apiVersionTenantTenantIdCallrecordingGet**
> apiVersionTenantTenantIdCallrecordingGet(tenantId, version, opts)

Tenant Call Recording List

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.CallRecordingApi();
let tenantId = "tenantId_example"; // String | 
let version = "version_example"; // String | 
let opts = { 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionTenantTenantIdCallrecordingGet(tenantId, version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **version** | **String**|  | 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **String**|  | [optional] 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="apiVersionTenantTenantIdCallrecordingIdDelete"></a>
# **apiVersionTenantTenantIdCallrecordingIdDelete**
> apiVersionTenantTenantIdCallrecordingIdDelete(tenantId, id, version)

Tenant Call Recording Delete

### Example
```javascript
import ps.module from 'phonespeakv2_api';
let defaultClient = ps.module.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new ps.module.CallRecordingApi();
let tenantId = "tenantId_example"; // String | 
let id = "id_example"; // String | 
let version = "version_example"; // String | 

apiInstance.apiVersionTenantTenantIdCallrecordingIdDelete(tenantId, id, version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tenantId** | **String**|  | 
 **id** | **String**|  | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

