All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
getMediaSource | GET /media-sources/{source_id} | |
getMediaSourceFiles | GET /media-sources/{source_id}/files | |
getMediaSources | GET /media-sources | |
postMediaSourceFiles | POST /media-sources/{source_id}/files |
MediaSource getMediaSource(sourceId)
Get media source
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.MediaSourcesApi();
var sourceId = 789; // Integer | Media source ID to fetch
apiInstance.getMediaSource(sourceId).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
sourceId | Integer | Media source ID to fetch |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
MediaFiles getMediaSourceFiles(sourceId, opts)
Get media source files
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.MediaSourcesApi();
var sourceId = 789; // Integer | Media source ID to fetch
var opts = {
'page': 789, // Integer |
'perPage': 789, // Integer |
'filters': "filters_example" // String | ``` name[value]=string&name[operator]=contains&date_add[value]=string&date_add[operator]=lt _______________ { \"name\": { \"value\": \"string\", \"operator\": \"contains\" }, \"date_add\": { \"value\": \"string\", \"operator\": \"lt\" } } ```Operator can be strict, contains, gt or lt.
};
apiInstance.getMediaSourceFiles(sourceId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
sourceId | Integer | Media source ID to fetch | |
page | Integer | [optional] | |
perPage | Integer | [optional] | |
filters | String | ``` name[value]=string&name[operator]=contains&date_add[value]=string&date_add[operator]=lt _______________ { "name": { "value": "string", "operator": "contains" }, "date_add": { "value": "string", "operator": "lt" } } ```Operator can be strict, contains, gt or lt. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
MediaSources getMediaSources(opts)
Get media source list
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.MediaSourcesApi();
var opts = {
'page': 789, // Integer |
'perPage': 789 // Integer |
};
apiInstance.getMediaSources(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] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
MediaFile postMediaSourceFiles(sourceId, body)
Post media file
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.MediaSourcesApi();
var sourceId = 789; // Integer | Media source ID to fetch
var body = new KinowJavascriptSdk.MediaFile(); // MediaFile | Create MediaFile object
apiInstance.postMediaSourceFiles(sourceId, body).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
sourceId | Integer | Media source ID to fetch | |
body | MediaFile | Create MediaFile object |
No authorization required
- Content-Type: Not defined
- Accept: Not defined