# ps.module.CdrApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionCdrCalleeDetailGet**](CdrApi.md#apiVersionCdrCalleeDetailGet) | **GET** /api/{version}/cdr/callee/detail | Get call cdr
[**apiVersionCdrCallidIdGet**](CdrApi.md#apiVersionCdrCallidIdGet) | **GET** /api/{version}/cdr/callid/{id} | Get call id info
[**apiVersionCdrGet**](CdrApi.md#apiVersionCdrGet) | **GET** /api/{version}/cdr | List Cdr
[**apiVersionCdrLogGet**](CdrApi.md#apiVersionCdrLogGet) | **GET** /api/{version}/cdr/log | List admin Cdr
[**apiVersionCdrOwnerIdAllDelete**](CdrApi.md#apiVersionCdrOwnerIdAllDelete) | **DELETE** /api/{version}/cdr/{ownerId}/all | Update Cdr
[**apiVersionCdrPut**](CdrApi.md#apiVersionCdrPut) | **PUT** /api/{version}/cdr | Update Cdr
[**apiVersionCsrCdrLogExportGet**](CdrApi.md#apiVersionCsrCdrLogExportGet) | **GET** /api/{version}/csr/cdr/log/export | List csr Cdr
[**apiVersionCsrCdrLogGet**](CdrApi.md#apiVersionCsrCdrLogGet) | **GET** /api/{version}/csr/cdr/log | List csr Cdr

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

Get call cdr

### 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.CdrApi();
let version = "version_example"; // String | 
let opts = { 
  'id': "id_example" // String | 
};
apiInstance.apiVersionCdrCalleeDetailGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **id** | **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="apiVersionCdrCallidIdGet"></a>
# **apiVersionCdrCallidIdGet**
> apiVersionCdrCallidIdGet(id, version)

Get call id info

### 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.CdrApi();
let id = "id_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **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="apiVersionCdrGet"></a>
# **apiVersionCdrGet**
> apiVersionCdrGet(version, opts)

List Cdr

### 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.CdrApi();
let version = "version_example"; // String | 
let opts = { 
  'ownerId': "ownerId_example", // String | 
  'targetId': "targetId_example", // String | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionCdrGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **ownerId** | **String**|  | [optional] 
 **targetId** | **String**|  | [optional] 
 **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="apiVersionCdrLogGet"></a>
# **apiVersionCdrLogGet**
> apiVersionCdrLogGet(version, opts)

List admin Cdr

### 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.CdrApi();
let version = "version_example"; // String | 
let opts = { 
  'callDirection': new ps.module.PhoneSpeakEntitiesEnumsDirection(), // PhoneSpeakEntitiesEnumsDirection | 
  'teammateIds': ["teammateIds_example"], // [String] | 
  'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionCdrLogGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **callDirection** | [**PhoneSpeakEntitiesEnumsDirection**](.md)|  | [optional] 
 **teammateIds** | [**[String]**](String.md)|  | [optional] 
 **startDate** | **Date**|  | [optional] 
 **endDate** | **Date**|  | [optional] 
 **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="apiVersionCdrOwnerIdAllDelete"></a>
# **apiVersionCdrOwnerIdAllDelete**
> apiVersionCdrOwnerIdAllDelete(ownerId, version)

Update Cdr

### 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.CdrApi();
let ownerId = "ownerId_example"; // String | 
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **ownerId** | **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="apiVersionCdrPut"></a>
# **apiVersionCdrPut**
> apiVersionCdrPut(version)

Update Cdr

### 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.CdrApi();
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreCDRsRecentCallsUpdateRecentCallQuery**](PhoneSpeakServiceCoreCDRsRecentCallsUpdateRecentCallQuery.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="apiVersionCsrCdrLogExportGet"></a>
# **apiVersionCsrCdrLogExportGet**
> apiVersionCsrCdrLogExportGet(version, opts)

List csr Cdr

### 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.CdrApi();
let version = "version_example"; // String | 
let opts = { 
  'search': "search_example", // String | 
  'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'country': new ps.module.PhoneSpeakEntitiesEnumsCountry() // PhoneSpeakEntitiesEnumsCountry | 
};
apiInstance.apiVersionCsrCdrLogExportGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **search** | **String**|  | [optional] 
 **startDate** | **Date**|  | [optional] 
 **endDate** | **Date**|  | [optional] 
 **country** | [**PhoneSpeakEntitiesEnumsCountry**](.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

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

List csr Cdr

### 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.CdrApi();
let version = "version_example"; // String | 
let opts = { 
  'startDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'endDate': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'country': new ps.module.PhoneSpeakEntitiesEnumsCountry(), // PhoneSpeakEntitiesEnumsCountry | 
  'sortBy': "sortBy_example", // String | 
  'direction': new ps.module.PhoneSpeakEntitiesEnumsListDirection(), // PhoneSpeakEntitiesEnumsListDirection | 
  'search': "search_example", // String | 
  'limit': 56, // Number | 
  'pageNum': 56 // Number | 
};
apiInstance.apiVersionCsrCdrLogGet(version, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **startDate** | **Date**|  | [optional] 
 **endDate** | **Date**|  | [optional] 
 **country** | [**PhoneSpeakEntitiesEnumsCountry**](.md)|  | [optional] 
 **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

