# ps.module.ContactCompanyApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionContactCompanyGet**](ContactCompanyApi.md#apiVersionContactCompanyGet) | **GET** /api/{version}/contact/company | List all company contact
[**apiVersionContactCompanyIdGet**](ContactCompanyApi.md#apiVersionContactCompanyIdGet) | **GET** /api/{version}/contact/company/{id} | Retrieves a company contact

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

List all company contact

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **limit** | **Number**|  | [optional] 
 **pageNum** | **Number**|  | [optional] 
 **tenantId** | **String**|  | [optional] 
 **sortBy** | **String**|  | [optional] 
 **direction** | [**PhoneSpeakEntitiesEnumsListDirection**](.md)|  | [optional] 
 **search** | **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="apiVersionContactCompanyIdGet"></a>
# **apiVersionContactCompanyIdGet**
> apiVersionContactCompanyIdGet(id, version)

Retrieves a company contact

### 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.ContactCompanyApi();
let id = "id_example"; // String | The unique id of the company
let version = "version_example"; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| The unique id of the company | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

