Skip to content

Latest commit

 

History

History
143 lines (94 loc) · 3.32 KB

AttributesApi.md

File metadata and controls

143 lines (94 loc) · 3.32 KB

AttributesApi

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

createProductAttribute

\Kinow\Client\Model\ProductAttribute createProductAttribute($body)

Create new product attribute

Example

<?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;
}
?>

Parameters

Name Type Description Notes
body \Kinow\Client\Model\ProductAttributeCreateRequest

Return type

\Kinow\Client\Model\ProductAttribute

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

deleteAttribute

deleteAttribute($attribute_id)

Delete Attribute

Example

<?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;
}
?>

Parameters

Name Type Description Notes
attribute_id int Attribute ID to delete

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

getProductAttributes

\Kinow\Client\Model\ProductAttributesResponse getProductAttributes($product_id, $page, $per_page)

Get Product attributes. Mandatory to add TVOD Product in cart.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
product_id int Product ID to fetch
page int [optional]
per_page int [optional]

Return type

\Kinow\Client\Model\ProductAttributesResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined