# VmosoApi.ContactcardApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**createContactCard**](ContactcardApi.md#createContactCard) | **POST** /contactCards | 
[**deleteContactCard**](ContactcardApi.md#deleteContactCard) | **POST** /contactCards/delete | 
[**getContactCard**](ContactcardApi.md#getContactCard) | **GET** /contactCards/{key} | 


<a name="createContactCard"></a>
# **createContactCard**
> CreateContactCardResult createContactCard(input)



Use this API to create a contact card.

### 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.ContactcardApi()

var input = new VmosoApi.CreateContactCardInput(); // {CreateContactCardInput} Contact card details.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**CreateContactCardInput**](CreateContactCardInput.md)| Contact card details. | 

### Return type

[**CreateContactCardResult**](CreateContactCardResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="deleteContactCard"></a>
# **deleteContactCard**
> DeleteContactCardResult deleteContactCard(input)



Use this API to delete a contact card.

### 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.ContactcardApi()

var input = new VmosoApi.DeleteContactCardInput(); // {DeleteContactCardInput} Contact card ID to delete.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **input** | [**DeleteContactCardInput**](DeleteContactCardInput.md)| Contact card ID to delete. | 

### Return type

[**DeleteContactCardResult**](DeleteContactCardResult.md)

### Authorization

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

### HTTP reuqest headers

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

<a name="getContactCard"></a>
# **getContactCard**
> GetContactCardResult getContactCard(key)



Use this API to get a contact card.

### 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.ContactcardApi()

var key = "key_example"; // {String} Contact card ID to get.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **key** | **String**| Contact card ID to get. | 

### Return type

[**GetContactCardResult**](GetContactCardResult.md)

### Authorization

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

### HTTP reuqest headers

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

