All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
getGeolocSettings | GET /geolocations/settings | |
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 |
\Kinow\Client\Model\GeolocSettingsResponse getGeolocSettings($type, $type_id)
Get geolocation settings for an item
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\GeolocationsApi();
$type = "type_example"; // string | Item type, available values are: category, subscription, product, video, extract, blogpage, slider, topmenu, homerail
$type_id = 56; // int | Item ID
try {
$result = $api_instance->getGeolocSettings($type, $type_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GeolocationsApi->getGeolocSettings: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
type | string | Item type, available values are: category, subscription, product, video, extract, blogpage, slider, topmenu, homerail | |
type_id | int | Item ID |
\Kinow\Client\Model\GeolocSettingsResponse
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\IPLocationResponse getIPLocation($ip_address)
Get IP location
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\GeolocationsApi();
$ip_address = "ip_address_example"; // string | address ip
try {
$result = $api_instance->getIPLocation($ip_address);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GeolocationsApi->getIPLocation: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
ip_address | string | address ip |
\Kinow\Client\Model\IPLocationResponse
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\PlatformAccessResponse getPlatformAccessInfo($ip_address)
Get PlatformAccessInfo by ip
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\GeolocationsApi();
$ip_address = "ip_address_example"; // string | IP address
try {
$result = $api_instance->getPlatformAccessInfo($ip_address);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GeolocationsApi->getPlatformAccessInfo: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
ip_address | string | IP address |
\Kinow\Client\Model\PlatformAccessResponse
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\GeolocationListResponse getProductGeolocations($product_id, $page, $per_page)
Get product geolocation restrictions
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\GeolocationsApi();
$product_id = 789; // int | Product ID to fetch
$page = 789; // int |
$per_page = 789; // int |
try {
$result = $api_instance->getProductGeolocations($product_id, $page, $per_page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GeolocationsApi->getProductGeolocations: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
product_id | int | Product ID to fetch | |
page | int | [optional] | |
per_page | int | [optional] |
\Kinow\Client\Model\GeolocationListResponse
- Content-Type: Not defined
- Accept: Not defined
getProductGeolocationsByIp($product_id, $ip_address, $page, $per_page)
Check product access using geolocation
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\GeolocationsApi();
$product_id = 789; // int | Product ID to fetch
$ip_address = "ip_address_example"; // string | address ip
$page = 789; // int |
$per_page = 789; // int |
try {
$api_instance->getProductGeolocationsByIp($product_id, $ip_address, $page, $per_page);
} catch (Exception $e) {
echo 'Exception when calling GeolocationsApi->getProductGeolocationsByIp: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
product_id | int | Product ID to fetch | |
ip_address | string | address ip | |
page | int | [optional] | |
per_page | int | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
getVideoGeolocationByIp($video_id, $ip_address, $page, $per_page)
Check access to a video by geolocation
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\GeolocationsApi();
$video_id = 789; // int | Video ID to fetch
$ip_address = "ip_address_example"; // string | IP address
$page = 789; // int |
$per_page = 789; // int |
try {
$api_instance->getVideoGeolocationByIp($video_id, $ip_address, $page, $per_page);
} catch (Exception $e) {
echo 'Exception when calling GeolocationsApi->getVideoGeolocationByIp: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
video_id | int | Video ID to fetch | |
ip_address | string | IP address | |
page | int | [optional] | |
per_page | int | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
setProductGeolocation($product_id, $enabled, $behavior_detected_countries, $behavior_non_detected_countries, $countries, $page, $per_page)
Handle geolocation for products by countries
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\GeolocationsApi();
$product_id = 789; // int | Product ID to fetch
$enabled = 56; // int | Enabled
$behavior_detected_countries = "behavior_detected_countries_example"; // string | Behavior for detected countries
$behavior_non_detected_countries = "behavior_non_detected_countries_example"; // string | Behavior for non-detected countries
$countries = "countries_example"; // string | IDs of the non-detected countries separated by comma
$page = 789; // int |
$per_page = 789; // int |
try {
$api_instance->setProductGeolocation($product_id, $enabled, $behavior_detected_countries, $behavior_non_detected_countries, $countries, $page, $per_page);
} catch (Exception $e) {
echo 'Exception when calling GeolocationsApi->setProductGeolocation: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
product_id | int | Product ID to fetch | |
enabled | int | Enabled | |
behavior_detected_countries | string | Behavior for detected countries | |
behavior_non_detected_countries | string | Behavior for non-detected countries | |
countries | string | IDs of the non-detected countries separated by comma | [optional] |
page | int | [optional] | |
per_page | int | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
setVideoGeolocation($video_id, $enabled, $behavior_detected_countries, $behavior_non_detected_countries, $countries)
Handle geolocation for videos by countries
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\GeolocationsApi();
$video_id = 789; // int | Video ID to fetch
$enabled = 56; // int | Enabled
$behavior_detected_countries = "behavior_detected_countries_example"; // string | Behavior for detected countries
$behavior_non_detected_countries = "behavior_non_detected_countries_example"; // string | Behavior for non-detected countries
$countries = "countries_example"; // string | IDs of the non-detected countries separated by comma
try {
$api_instance->setVideoGeolocation($video_id, $enabled, $behavior_detected_countries, $behavior_non_detected_countries, $countries);
} catch (Exception $e) {
echo 'Exception when calling GeolocationsApi->setVideoGeolocation: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
video_id | int | Video ID to fetch | |
enabled | int | Enabled | |
behavior_detected_countries | string | Behavior for detected countries | |
behavior_non_detected_countries | string | Behavior for non-detected countries | |
countries | string | IDs of the non-detected countries separated by comma | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined