# ps.module.StorageApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionStorageAuthenticationGet**](StorageApi.md#apiVersionStorageAuthenticationGet) | **GET** /api/{version}/storage/authentication | Get Authentication
[**apiVersionStorageAuthenticationPermissionPost**](StorageApi.md#apiVersionStorageAuthenticationPermissionPost) | **POST** /api/{version}/storage/authentication/permission | Get Authentication with Permissions
[**apiVersionTenantTenantIdStorageCallrecordingAuthenticationGet**](StorageApi.md#apiVersionTenantTenantIdStorageCallrecordingAuthenticationGet) | **GET** /api/{version}/tenant/{tenantId}/storage/callrecording/authentication | 

<a name="apiVersionStorageAuthenticationGet"></a>
# **apiVersionStorageAuthenticationGet**
> apiVersionStorageAuthenticationGet(version)

Get Authentication

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

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

### Parameters

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

Get Authentication with Permissions

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

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

### Parameters

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



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

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

### Parameters

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

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

