All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
addProductToBundle | PUT /bundles/{bundle_id} | |
getBundleProducts | GET /bundles/{bundle_id}/products | |
removeProductFromBundle | DELETE /bundles/{bundle_id}/{product_id} |
addProductToBundle($bundle_id, $product_id, $position)
Add product to bundle
<?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\BundlesApi();
$bundle_id = 789; // int | Bundle ID to fetch
$product_id = 789; // int | Product ID to add
$position = 789; // int | Product position
try {
$api_instance->addProductToBundle($bundle_id, $product_id, $position);
} catch (Exception $e) {
echo 'Exception when calling BundlesApi->addProductToBundle: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
bundle_id | int | Bundle ID to fetch | |
product_id | int | Product ID to add | |
position | int | Product position |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\BlogPageProductsResponse getBundleProducts($bundle_id, $page, $per_page)
Get products from bundle
<?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\BundlesApi();
$bundle_id = 789; // int | Bundle ID to fetch
$page = 789; // int |
$per_page = 789; // int |
try {
$result = $api_instance->getBundleProducts($bundle_id, $page, $per_page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BundlesApi->getBundleProducts: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
bundle_id | int | Bundle ID to fetch | |
page | int | [optional] | |
per_page | int | [optional] |
\Kinow\Client\Model\BlogPageProductsResponse
- Content-Type: Not defined
- Accept: Not defined
removeProductFromBundle($bundle_id, $product_id)
Remove product from bundle
<?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\BundlesApi();
$bundle_id = 789; // int | Bundle ID to fetch
$product_id = 789; // int | Product ID to remove
try {
$api_instance->removeProductFromBundle($bundle_id, $product_id);
} catch (Exception $e) {
echo 'Exception when calling BundlesApi->removeProductFromBundle: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
bundle_id | int | Bundle ID to fetch | |
product_id | int | Product ID to remove |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined