# EyondCoreApi.ProductsApi

All URIs are relative to *https://eyondcoreapi.azurewebsites.net*

Method | HTTP request | Description
------------- | ------------- | -------------
[**deleteProduct**](ProductsApi.md#deleteProduct) | **DELETE** /api/Products/delete/client/{clientId}/prod/{prodId} | 
[**getProduct**](ProductsApi.md#getProduct) | **GET** /api/Products/client/{clientId}/prod/{prodId} | 
[**getProducts**](ProductsApi.md#getProducts) | **GET** /api/Products/{clientId} | 
[**postProduct**](ProductsApi.md#postProduct) | **POST** /api/Products/add | 
[**putProduct**](ProductsApi.md#putProduct) | **PUT** /api/Products/modify/client/{clientId}/prod/{prodId} | 


<a name="deleteProduct"></a>
# **deleteProduct**
> Product deleteProduct(clientId, prodId)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

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

var apiInstance = new EyondCoreApi.ProductsApi();

var clientId = 789; // Number | 

var prodId = 789; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.deleteProduct(clientId, prodId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **prodId** | **Number**|  | 

### Return type

[**Product**](Product.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="getProduct"></a>
# **getProduct**
> Product getProduct(clientId, prodId, opts)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

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

var apiInstance = new EyondCoreApi.ProductsApi();

var clientId = 789; // Number | 

var prodId = 789; // Number | 

var opts = { 
  'showVariantsInfo': false // Boolean | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getProduct(clientId, prodId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **prodId** | **Number**|  | 
 **showVariantsInfo** | **Boolean**|  | [optional] [default to false]

### Return type

[**Product**](Product.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="getProducts"></a>
# **getProducts**
> [Product] getProducts(clientId, opts)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

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

var apiInstance = new EyondCoreApi.ProductsApi();

var clientId = 789; // Number | 

var opts = { 
  'showVariantsInfo': false // Boolean | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getProducts(clientId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **showVariantsInfo** | **Boolean**|  | [optional] [default to false]

### Return type

[**[Product]**](Product.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="postProduct"></a>
# **postProduct**
> Product postProduct(opts)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

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

var apiInstance = new EyondCoreApi.ProductsApi();

var opts = { 
  'productModel': new EyondCoreApi.Product() // Product | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **productModel** | [**Product**](Product.md)|  | [optional] 

### Return type

[**Product**](Product.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: text/plain, application/json, text/json

<a name="putProduct"></a>
# **putProduct**
> putProduct(clientId, prodId, opts)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

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

var apiInstance = new EyondCoreApi.ProductsApi();

var clientId = 789; // Number | 

var prodId = 789; // Number | 

var opts = { 
  'productModel': new EyondCoreApi.Product() // Product | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.putProduct(clientId, prodId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **prodId** | **Number**|  | 
 **productModel** | [**Product**](Product.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: Not defined

