All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
attachBookmarkToCustomer | POST /customers/{customer_id}/bookmarks | |
detachBookmarkFromCustomer | DELETE /customers/{customer_id}/bookmarks/{product_id} | |
getCustomerBookmarks | GET /customers/{customer_id}/bookmarks |
attachBookmarkToCustomer(customerId, productId)
Attach bookmark to customer
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var defaultClient = KinowJavascriptSdk.ApiClient.instance;
// Configure API key authorization: ApiClientId
var ApiClientId = defaultClient.authentications['ApiClientId'];
ApiClientId.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientId.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiClientSecret
var ApiClientSecret = defaultClient.authentications['ApiClientSecret'];
ApiClientSecret.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientSecret.apiKeyPrefix = 'Token';
var apiInstance = new KinowJavascriptSdk.BookmarksApi();
var customerId = 789; // Integer | Customer ID to fetch
var productId = 789; // Integer |
apiInstance.attachBookmarkToCustomer(customerId, productId).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
customerId | Integer | Customer ID to fetch | |
productId | Integer |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
detachBookmarkFromCustomer(customerId, productId)
Detach bookmark from customer
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var defaultClient = KinowJavascriptSdk.ApiClient.instance;
// Configure API key authorization: ApiClientId
var ApiClientId = defaultClient.authentications['ApiClientId'];
ApiClientId.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientId.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiClientSecret
var ApiClientSecret = defaultClient.authentications['ApiClientSecret'];
ApiClientSecret.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientSecret.apiKeyPrefix = 'Token';
var apiInstance = new KinowJavascriptSdk.BookmarksApi();
var customerId = 789; // Integer | Customer ID to fetch
var productId = 789; // Integer |
apiInstance.detachBookmarkFromCustomer(customerId, productId).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
customerId | Integer | Customer ID to fetch | |
productId | Integer |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
ProductListResponse getCustomerBookmarks(customerId, opts)
Get customer bookmarks
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var defaultClient = KinowJavascriptSdk.ApiClient.instance;
// Configure API key authorization: ApiClientId
var ApiClientId = defaultClient.authentications['ApiClientId'];
ApiClientId.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientId.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiClientSecret
var ApiClientSecret = defaultClient.authentications['ApiClientSecret'];
ApiClientSecret.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiClientSecret.apiKeyPrefix = 'Token';
var apiInstance = new KinowJavascriptSdk.BookmarksApi();
var customerId = 789; // Integer |
var opts = {
'page': 789, // Integer |
'perPage': 789 // Integer |
'sortBy': "sortBy_example", // String | Sort by this attribute (id by default)
'sortDirection': "sortDirection_example" // String | Sorting direction (asc by default)
};
apiInstance.getCustomerBookmarks(customerId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
customerId | Integer | ||
page | Integer | [optional] | |
perPage | Integer | [optional] | |
sortBy | String | Sort by this attribute (id by default) | [optional] |
sortDirection | String | Sorting direction (asc by default) | [optional] |
- Content-Type: Not defined
- Accept: Not defined