# VmosoApi.SwitchboardApi

All URIs are relative to *https://www.vmoso.com/svc*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getMembers**](SwitchboardApi.md#getMembers) | **GET** /switchboard/{contentKey}/members | 
[**joinSwitchboard**](SwitchboardApi.md#joinSwitchboard) | **POST** /switchboard/join | 
[**leaveSwitchboard**](SwitchboardApi.md#leaveSwitchboard) | **POST** /switchboard/leave | 


<a name="getMembers"></a>
# **getMembers**
> GetMembersResult getMembers(contentKey, commentListKey)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.ApiClient.default;

// Configure API key authorization: vmoso_auth
var vmoso_auth = defaultClient.authentications['vmoso_auth'];
vmoso_auth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//vmoso_auth.apiKeyPrefix['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SwitchboardApi()

var contentKey = "contentKey_example"; // {String} 

var commentListKey = "commentListKey_example"; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMembers(contentKey, commentListKey, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **contentKey** | **String**|  | 
 **commentListKey** | **String**|  | 

### Return type

[**GetMembersResult**](GetMembersResult.md)

### Authorization

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

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="joinSwitchboard"></a>
# **joinSwitchboard**
> JoinSwitchboardResult joinSwitchboard(input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.ApiClient.default;

// Configure API key authorization: vmoso_auth
var vmoso_auth = defaultClient.authentications['vmoso_auth'];
vmoso_auth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//vmoso_auth.apiKeyPrefix['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SwitchboardApi()

var input = new VmosoApi.JoinSwitchboardInput(); // {JoinSwitchboardInput} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.joinSwitchboard(input, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**JoinSwitchboardInput**](JoinSwitchboardInput.md)|  | 

### Return type

[**JoinSwitchboardResult**](JoinSwitchboardResult.md)

### Authorization

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

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="leaveSwitchboard"></a>
# **leaveSwitchboard**
> LeaveSwitchboardResult leaveSwitchboard(input)





### Example
```javascript
var VmosoApi = require('vmoso-api');
var defaultClient = VmosoApi.ApiClient.default;

// Configure API key authorization: vmoso_auth
var vmoso_auth = defaultClient.authentications['vmoso_auth'];
vmoso_auth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//vmoso_auth.apiKeyPrefix['X-CV-Authorization'] = "Token"

var apiInstance = new VmosoApi.SwitchboardApi()

var input = new VmosoApi.LeaveSwitchboardInput(); // {LeaveSwitchboardInput} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.leaveSwitchboard(input, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**LeaveSwitchboardInput**](LeaveSwitchboardInput.md)|  | 

### Return type

[**LeaveSwitchboardResult**](LeaveSwitchboardResult.md)

### Authorization

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

### HTTP reuqest headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

