Skip to content

Latest commit

 

History

History
175 lines (126 loc) · 5.43 KB

BundlesApi.md

File metadata and controls

175 lines (126 loc) · 5.43 KB

BundlesApi

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

add_product_to_bundle(bundle_id, product_id, position)

Add product to bundle

Example

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)

Parameters

Name Type Description Notes
bundle_id int Bundle ID to fetch
product_id int Product ID to add
position int Product position

Return type

void (empty response body)

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list]

get_bundle_products

BlogPageProductsResponse get_bundle_products(bundle_id, page=page, per_page=per_page)

Get products from bundle

Example

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)

Parameters

Name Type Description Notes
bundle_id int Bundle ID to fetch
page int [optional]
per_page int [optional]

Return type

BlogPageProductsResponse

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list]

remove_product_from_bundle

remove_product_from_bundle(bundle_id, product_id)

Remove product from bundle

Example

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)

Parameters

Name Type Description Notes
bundle_id int Bundle ID to fetch
product_id int Product ID to remove

Return type

void (empty response body)

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list]