# ps.module.ContactTeammateApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionContactTeammateGet**](ContactTeammateApi.md#apiVersionContactTeammateGet) | **GET** /api/{version}/contact/teammate | List all Teammate contact
[**apiVersionContactTeammateIdGet**](ContactTeammateApi.md#apiVersionContactTeammateIdGet) | **GET** /api/{version}/contact/teammate/{id} | Retrieves a Teammate contact

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

List all Teammate 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.ContactTeammateApi();
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.apiVersionContactTeammateGet(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="apiVersionContactTeammateIdGet"></a>
# **apiVersionContactTeammateIdGet**
> apiVersionContactTeammateIdGet(id, version)

Retrieves a Teammate 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.ContactTeammateApi();
let id = "id_example"; // String | The unique id of the Teammate
let version = "version_example"; // String | 

apiInstance.apiVersionContactTeammateIdGet(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 Teammate | 
 **version** | **String**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

