All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
attachBookmarkToPlaylist | POST /playlists/{playlist_id}/bookmarks | |
createPlaylist | POST /playlists | |
deletePlaylist | DELETE /playlists/{playlist_id} | |
detachBookmarkFromPlaylist | DELETE /playlists/{playlist_id}/bookmarks/{product_id} | |
getCustomerPlaylists | GET /customers/{customer_id}/playlists | |
getPlaylist | GET /playlists/{playlist_id} | |
getPlaylistBookmarks | GET /playlists/{playlist_id}/bookmarks | |
getPlaylists | GET /playlists | |
updatePlaylist | PUT /playlists/{playlist_id} |
attachBookmarkToPlaylist(playlistId, productId)
Attach bookmark to playlist
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.PlaylistsApi();
var playlistId = 789; // Integer | Playlist ID to fetch
var productId = 789; // Integer |
apiInstance.attachBookmarkToPlaylist(playlistId, productId).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
playlistId | Integer | Playlist ID to fetch | |
productId | Integer |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
PlaylistResponse createPlaylist(customerId, name)
Create playlist
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.PlaylistsApi();
var customerId = 789; // Integer |
var name = "name_example"; // String |
apiInstance.createPlaylist(customerId, name).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
customerId | Integer | ||
name | String |
- Content-Type: Not defined
- Accept: Not defined
deletePlaylist(playlistId)
Delete playlist
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.PlaylistsApi();
var playlistId = 56; // Integer |
apiInstance.deletePlaylist(playlistId).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
playlistId | Integer |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
detachBookmarkFromPlaylist(playlistId, productId)
Detach bookmark from playlist
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.PlaylistsApi();
var playlistId = 789; // Integer | Playlist ID to fetch
var productId = 789; // Integer |
apiInstance.detachBookmarkFromPlaylist(playlistId, productId).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
playlistId | Integer | Playlist ID to fetch | |
productId | Integer |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
PlaylistListResponse getCustomerPlaylists(customerId, opts)
Get customer playlists
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.PlaylistsApi();
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.getCustomerPlaylists(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
PlaylistResponse getPlaylist(playlistId)
Get playlist
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.PlaylistsApi();
var playlistId = 789; // Integer | Playlist ID to fetch
apiInstance.getPlaylist(playlistId).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
playlistId | Integer | Playlist ID to fetch |
- Content-Type: Not defined
- Accept: Not defined
ProductListResponse getPlaylistBookmarks(playlistId, opts)
Get playlist 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.PlaylistsApi();
var playlistId = 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.getPlaylistBookmarks(playlistId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
playlistId | 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
PlaylistListResponse getPlaylists(opts)
Get playlists
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.PlaylistsApi();
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.getPlaylists(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
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
PlaylistResponse updatePlaylist(playlistId, body)
Update playlist
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.PlaylistsApi();
var playlistId = 789; // Integer | Playlist ID to update
var body = new KinowJavascriptSdk.PlaylistUpdate(); // PlaylistUpdate | Playlist settings
apiInstance.updatePlaylist(playlistId, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
playlistId | Integer | Playlist ID to update | |
body | PlaylistUpdate | Playlist settings |
- Content-Type: Not defined
- Accept: Not defined