All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
createProductAttribute | POST /attributes | |
deleteAttribute | DELETE /attributes/{attribute_id} | |
getProductAttributes | GET /products/{product_id}/attributes |
\Kinow\Client\Model\ProductAttribute createProductAttribute($body)
Create new product attribute
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\AttributesApi();
$body = new \Kinow\Client\Model\ProductAttributeCreateRequest(); // \Kinow\Client\Model\ProductAttributeCreateRequest |
try {
$result = $api_instance->createProductAttribute($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributesApi->createProductAttribute: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Kinow\Client\Model\ProductAttributeCreateRequest |
\Kinow\Client\Model\ProductAttribute
No authorization required
- Content-Type: Not defined
- Accept: Not defined
deleteAttribute($attribute_id)
Delete Attribute
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\AttributesApi();
$attribute_id = 789; // int | Attribute ID to delete
try {
$api_instance->deleteAttribute($attribute_id);
} catch (Exception $e) {
echo 'Exception when calling AttributesApi->deleteAttribute: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
attribute_id | int | Attribute ID to delete |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\ProductAttributesResponse getProductAttributes($product_id, $page, $per_page)
Get Product attributes. Mandatory to add TVOD Product in cart.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Kinow\Client\Api\AttributesApi();
$product_id = 789; // int | Product ID to fetch
$page = 789; // int |
$per_page = 789; // int |
try {
$result = $api_instance->getProductAttributes($product_id, $page, $per_page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AttributesApi->getProductAttributes: ', $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\ProductAttributesResponse
No authorization required
- Content-Type: Not defined
- Accept: Not defined