# CymbioApi.SearchApi

All URIs are relative to *http://api1.cym.bio/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**extend**](SearchApi.md#extend) | **GET** /extend | Returns products to extand a store search.
[**getProduct**](SearchApi.md#getProduct) | **GET** /extend/product/{product_id} | Returnes details of an extended product.


<a name="extend"></a>
# **extend**
> ExtendResults extend(query, existingResults)

Returns products to extand a store search.

### Example
```javascript
var CymbioApi = require('cymbio_api');
var defaultClient = CymbioApi.ApiClient.default;

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

var apiInstance = new CymbioApi.SearchApi();

var query = "query_example"; // String | Query to search by.

var existingResults = 0; // Integer | how many native results were found.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **query** | **String**| Query to search by. | 
 **existingResults** | **Integer**| how many native results were found. | [default to 0]

### Return type

[**ExtendResults**](ExtendResults.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json, application/x-www-form-urlencoded
 - **Accept**: application/json

<a name="getProduct"></a>
# **getProduct**
> Product getProduct(productId)

Returnes details of an extended product.

Returnes details of an extended product by id, returnes avilability, variants etc...

### Example
```javascript
var CymbioApi = require('cymbio_api');
var defaultClient = CymbioApi.ApiClient.default;

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

var apiInstance = new CymbioApi.SearchApi();

var productId = "productId_example"; // String | The product id


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **productId** | **String**| The product id | 

### Return type

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

### Authorization

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

### HTTP request headers

 - **Content-Type**: application/json, application/x-www-form-urlencoded
 - **Accept**: application/json

