All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
getIPLocation | GET /geolocations/ip | |
getPlatformAccessInfo | GET /geolocations/platform-access | |
getProductGeolocations | GET /products/{product_id}/geolocations | |
getProductGeolocationsByIp | POST /products/{product_id}/geolocations | |
getVideoGeolocationByIp | POST /videos/{video_id}/geolocations/{ip_address} | |
setProductGeolocation | PUT /products/{product_id}/geolocations | |
setVideoGeolocation | PUT /videos/{video_id}/geolocations |
IPLocation getIPLocation(ipAddress)
Get IP location
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.GeolocationsApi();
var ipAddress = "ipAddress_example"; // String | address ip
apiInstance.getIPLocation(ipAddress).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
ipAddress | String | address ip |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
PlatformAccessInfo getPlatformAccessInfo(ipAddress)
Get PlatformAccessInfo by ip
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.GeolocationsApi();
var ipAddress = "ipAddress_example"; // String | IP address
apiInstance.getPlatformAccessInfo(ipAddress).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
ipAddress | String | IP address |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Geolocs getProductGeolocations(productId, opts)
Get product geolocation restrictions
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.GeolocationsApi();
var productId = 789; // Integer | Product ID to fetch
var opts = {
'page': 789, // Integer |
'perPage': 789 // Integer |
};
apiInstance.getProductGeolocations(productId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
productId | Integer | Product ID to fetch | |
page | Integer | [optional] | |
perPage | Integer | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
getProductGeolocationsByIp(productId, ipAddress, opts)
Check product access using geolocation
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.GeolocationsApi();
var productId = 789; // Integer | Product ID to fetch
var ipAddress = "ipAddress_example"; // String | address ip
var opts = {
'page': 789, // Integer |
'perPage': 789 // Integer |
};
apiInstance.getProductGeolocationsByIp(productId, ipAddress, opts).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
productId | Integer | Product ID to fetch | |
ipAddress | String | address ip | |
page | Integer | [optional] | |
perPage | Integer | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
getVideoGeolocationByIp(videoId, ipAddress, opts)
Check access to a video by geolocation
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.GeolocationsApi();
var videoId = 789; // Integer | Video ID to fetch
var ipAddress = "ipAddress_example"; // String | IP address
var opts = {
'page': 789, // Integer |
'perPage': 789 // Integer |
};
apiInstance.getVideoGeolocationByIp(videoId, ipAddress, opts).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
videoId | Integer | Video ID to fetch | |
ipAddress | String | IP address | |
page | Integer | [optional] | |
perPage | Integer | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
setProductGeolocation(productId, enabled, behaviorDetectedCountries, behaviorNonDetectedCountries, opts)
Handle geolocation for products by countries
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.GeolocationsApi();
var productId = 789; // Integer | Product ID to fetch
var enabled = 56; // Integer | Enabled
var behaviorDetectedCountries = "behaviorDetectedCountries_example"; // String | Behavior for detected countries
var behaviorNonDetectedCountries = "behaviorNonDetectedCountries_example"; // String | Behavior for non-detected countries
var opts = {
'countries': "countries_example", // String | IDs of the non-detected countries separated by comma
'page': 789, // Integer |
'perPage': 789 // Integer |
};
apiInstance.setProductGeolocation(productId, enabled, behaviorDetectedCountries, behaviorNonDetectedCountries, opts).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
productId | Integer | Product ID to fetch | |
enabled | Integer | Enabled | |
behaviorDetectedCountries | String | Behavior for detected countries | |
behaviorNonDetectedCountries | String | Behavior for non-detected countries | |
countries | String | IDs of the non-detected countries separated by comma | [optional] |
page | Integer | [optional] | |
perPage | Integer | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
setVideoGeolocation(videoId, enabled, behaviorDetectedCountries, behaviorNonDetectedCountries, opts)
Handle geolocation for videos by countries
var KinowJavascriptSdk = require('kinow-javascript-sdk');
var apiInstance = new KinowJavascriptSdk.GeolocationsApi();
var videoId = 789; // Integer | Video ID to fetch
var enabled = 56; // Integer | Enabled
var behaviorDetectedCountries = "behaviorDetectedCountries_example"; // String | Behavior for detected countries
var behaviorNonDetectedCountries = "behaviorNonDetectedCountries_example"; // String | Behavior for non-detected countries
var opts = {
'countries': "countries_example" // String | IDs of the non-detected countries separated by comma
};
apiInstance.setVideoGeolocation(videoId, enabled, behaviorDetectedCountries, behaviorNonDetectedCountries, opts).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
videoId | Integer | Video ID to fetch | |
enabled | Integer | Enabled | |
behaviorDetectedCountries | String | Behavior for detected countries | |
behaviorNonDetectedCountries | String | Behavior for non-detected countries | |
countries | String | IDs of the non-detected countries separated by comma | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined