All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
attachProductToActor | POST /products/{product_id}/actors | |
createActor | POST /actors | |
deleteActor | DELETE /actors/{actor_id} | |
getActor | GET /actors/{actor_id} | |
getActorCoverImage | GET /actors/{actor_id}/cover | |
getActorProducts | GET /actors/{actor_id}/products | |
getActorProductsRole | GET /actors/{actor_id}/products-role | |
getActors | GET /actors | |
getProductActors | GET /products/{product_id}/actors | |
getProductActorsRole | GET /products/{product_id}/actors-role | |
updateActor | PUT /actors/{actor_id} | |
uploadActorCover | POST /actors/{actor_id}/cover |
attachProductToActor($product_id, $actor_id)
Attach product to actor
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$product_id = 789; // int | Product ID to fetch
$actor_id = 789; // int | Actor ID to attach
try {
$api_instance->attachProductToActor($product_id, $actor_id);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->attachProductToActor: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
product_id | int | Product ID to fetch | |
actor_id | int | Actor ID to attach |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\Actor createActor($body)
Create new actor
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$body = new \Kinow\Client\Model\Actor1(); // \Kinow\Client\Model\Actor1 | Actor settings
try {
$result = $api_instance->createActor($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->createActor: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Kinow\Client\Model\Actor1 | Actor settings |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
deleteActor($actor_id)
Delete actor
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$actor_id = 56; // int |
try {
$api_instance->deleteActor($actor_id);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->deleteActor: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
actor_id | int |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\Actor getActor($actor_id)
Get actor
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$actor_id = 789; // int | Actor ID to fetch
try {
$result = $api_instance->getActor($actor_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->getActor: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
actor_id | int | Actor ID to fetch |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\Image getActorCoverImage($actor_id)
Get cover image of an actor
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$actor_id = 789; // int | Actor ID to fetch
try {
$result = $api_instance->getActorCoverImage($actor_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->getActorCoverImage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
actor_id | int | Actor ID to fetch |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\Products getActorProducts($actor_id, $page, $per_page, $sort_by, $sort_direction, $ip, $features, $filters)
Get actor products
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$actor_id = 789; // int | Actor ID to fetch
$page = 789; // int |
$per_page = 789; // int |
$sort_by = "sort_by_example"; // string | Sort by this attribute (id by default)
$sort_direction = "sort_direction_example"; // string | Sorting direction (asc by default)
$ip = "ip_example"; // string | Filter by user IP
$features = "features_example"; // string | ``` features[*][value]=string&features[*][operator]=strict&features[1][value]=string&features[1][operator]=strict _______________ { \"*\": { \"value\": \"string\", \"operator\": \"strict\" }, \"1\": { \"value\": \"string\", \"operator\": \"contains\" } } ``` Operator can be: strict, contains, between, in, gt (greater than), lt (lower than). To search on all features, you can pass * as featureId.
$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, between, in, gt (greater than), lt (lower than).
try {
$result = $api_instance->getActorProducts($actor_id, $page, $per_page, $sort_by, $sort_direction, $ip, $features, $filters);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->getActorProducts: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
actor_id | int | Actor ID to fetch | |
page | int | [optional] | |
per_page | int | [optional] | |
sort_by | string | Sort by this attribute (id by default) | [optional] |
sort_direction | string | Sorting direction (asc by default) | [optional] |
ip | string | Filter by user IP | [optional] |
features | string | ``` features[][value]=string&features[][operator]=strict&features[1][value]=string&features[1][operator]=strict _______________ { "*": { "value": "string", "operator": "strict" }, "1": { "value": "string", "operator": "contains" } } ``` Operator can be: strict, contains, between, in, gt (greater than), lt (lower than). To search on all features, you can pass * as featureId. | [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, between, in, gt (greater than), lt (lower than). | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\Products getActorProductsRole($actor_id, $page, $per_page)
Get Products linked to Actor with their role
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$actor_id = 789; // int | Actor ID to fetch
$page = 789; // int |
$per_page = 789; // int |
try {
$result = $api_instance->getActorProductsRole($actor_id, $page, $per_page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->getActorProductsRole: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
actor_id | int | Actor ID to fetch | |
page | int | [optional] | |
per_page | int | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\Actors getActors($page, $per_page)
Get actors list
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$page = 789; // int |
$per_page = 789; // int |
try {
$result = $api_instance->getActors($page, $per_page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->getActors: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
page | int | [optional] | |
per_page | int | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\Actors getProductActors($product_id, $page, $per_page, $image_type)
Get actors attached to product
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$product_id = 789; // int | Product ID to fetch
$page = 789; // int |
$per_page = 789; // int |
$image_type = "image_type_example"; // string |
try {
$result = $api_instance->getProductActors($product_id, $page, $per_page, $image_type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->getProductActors: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
product_id | int | Product ID to fetch | |
page | int | [optional] | |
per_page | int | [optional] | |
image_type | string | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\Actors getProductActorsRole($product_id, $page, $per_page)
Get Actors attached to Product with their role
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$product_id = 789; // int | Product ID to fetch
$page = 789; // int |
$per_page = 789; // int |
try {
$result = $api_instance->getProductActorsRole($product_id, $page, $per_page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->getProductActorsRole: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
product_id | int | Product ID to fetch | |
page | int | [optional] | |
per_page | int | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
updateActor($actor_id, $body)
Update actor
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$actor_id = 56; // int |
$body = new \Kinow\Client\Model\Actor2(); // \Kinow\Client\Model\Actor2 | Actor settings
try {
$api_instance->updateActor($actor_id, $body);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->updateActor: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
actor_id | int | ||
body | \Kinow\Client\Model\Actor2 | Actor settings |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\Image uploadActorCover($actor_id, $file, $hash, $hash_algorithm)
Upload actor cover
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\ActorsApi();
$actor_id = 3.4; // float | Actor ID to fetch
$file = "/path/to/file.txt"; // \SplFileObject |
$hash = "hash_example"; // string |
$hash_algorithm = "hash_algorithm_example"; // string | Hash algorithm to check the hash file (default value is: sha256)
try {
$result = $api_instance->uploadActorCover($actor_id, $file, $hash, $hash_algorithm);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ActorsApi->uploadActorCover: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
actor_id | float | Actor ID to fetch | |
file | \SplFileObject | ||
hash | string | ||
hash_algorithm | string | Hash algorithm to check the hash file (default value is: sha256) | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: Not defined