All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
add_product_to_bundle | PUT /bundles/{bundle_id} | |
get_bundle_products | GET /bundles/{bundle_id}/products | |
remove_product_from_bundle | DELETE /bundles/{bundle_id}/{product_id} |
add_product_to_bundle(bundle_id, product_id, position)
Add product to bundle
from __future__ import print_statement
import time
import kinow_client
from kinow_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiClientId
kinow_client.configuration.api_key['X-Client-Id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# kinow_client.configuration.api_key_prefix['X-Client-Id'] = 'Bearer'
# Configure API key authorization: ApiClientSecret
kinow_client.configuration.api_key['X-Client-Secret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# kinow_client.configuration.api_key_prefix['X-Client-Secret'] = 'Bearer'
# create an instance of the API class
api_instance = kinow_client.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.add_product_to_bundle(bundle_id, product_id, position)
except ApiException as e:
print("Exception when calling BundlesApi->add_product_to_bundle: %s\n" % e)
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
[Back to top] [Back to API list] [Back to Model list]
BlogPageProductsResponse get_bundle_products(bundle_id, page=page, per_page=per_page)
Get products from bundle
from __future__ import print_statement
import time
import kinow_client
from kinow_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiClientId
kinow_client.configuration.api_key['X-Client-Id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# kinow_client.configuration.api_key_prefix['X-Client-Id'] = 'Bearer'
# Configure API key authorization: ApiClientSecret
kinow_client.configuration.api_key['X-Client-Secret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# kinow_client.configuration.api_key_prefix['X-Client-Secret'] = 'Bearer'
# create an instance of the API class
api_instance = kinow_client.BundlesApi()
bundle_id = 789 # int | Bundle ID to fetch
page = 789 # int | (optional)
per_page = 789 # int | (optional)
try:
api_response = api_instance.get_bundle_products(bundle_id, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling BundlesApi->get_bundle_products: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
bundle_id | int | Bundle ID to fetch | |
page | int | [optional] | |
per_page | int | [optional] |
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list]
remove_product_from_bundle(bundle_id, product_id)
Remove product from bundle
from __future__ import print_statement
import time
import kinow_client
from kinow_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiClientId
kinow_client.configuration.api_key['X-Client-Id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# kinow_client.configuration.api_key_prefix['X-Client-Id'] = 'Bearer'
# Configure API key authorization: ApiClientSecret
kinow_client.configuration.api_key['X-Client-Secret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# kinow_client.configuration.api_key_prefix['X-Client-Secret'] = 'Bearer'
# create an instance of the API class
api_instance = kinow_client.BundlesApi()
bundle_id = 789 # int | Bundle ID to fetch
product_id = 789 # int | Product ID to remove
try:
api_instance.remove_product_from_bundle(bundle_id, product_id)
except ApiException as e:
print("Exception when calling BundlesApi->remove_product_from_bundle: %s\n" % e)
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