Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
docs
kaemo_client
kinow_client
test
.gitignore
.swagger-codegen-ignore
.travis.yml
LICENSE
README.md
git_push.sh
requirements.txt
setup.py
test-requirements.txt
tox.ini

README.md

kinow_client

Public api for Kinow back office

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.2.0
  • Package version: 1.0.0
  • Build date: 2019-08-08T14:37:31.822+01:00
  • Build package: class io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/kinow-io/kinow-python-sdk.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/kinow-io/kinow-python-sdk.git)

Then import the package:

import kinow_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import kinow_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import kinow_client
from kinow_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = kinow_client.AccessesApi()
category_id = 789 # int | Category ID to fetch
customer_id = 789 # int |  (optional)

try:
    api_response = api_instance.get_available_category(category_id, customer_id=customer_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccessesApi->get_available_category: %s\n" % e)

Enable Debug Logs

You can enable debug logging to get information about what is sent or received by the SDK.

When submitting a support request, it is best to provide the logs file for a faster resolution of your issue.

# To be done before doing anything with the SDK
# Activate debug logs
kinow_client.configuration.debug = true

# (optionally) Set debug file location (no file is used by default)
kinow_client.configuration.logger_file = "path/to/logger/file"

Documentation for API Endpoints

All URIs are relative to https://api.kinow.com/api

Class Method HTTP request Description
AccessesApi get_available_category GET /categories-accesses/{category_id}
AccessesApi get_customer_has_access_to_product GET /customers/{customer_id}/products/{product_id}/has-access
AccessesApi get_customer_has_access_to_video GET /customers/{customer_id}/videos/{video_id}/has-access
AccessesApi get_product_availability GET /products/{product_id}/access
ActorsApi create_actor POST /actors
ActorsApi delete_actor DELETE /actors/{actor_id}
ActorsApi get_actor GET /actors/{actor_id}
ActorsApi get_actors GET /actors
ActorsApi get_product_actors GET /products/{product_id}/actors
ActorsApi update_actor PUT /actors/{actor_id}
AddressApi get_customer_address GET /customers/{customer_id}/address
AddressApi update_address PUT /addresses/{address_id}
AttributesApi create_product_attribute POST /attributes
AttributesApi get_product_attributes GET /products/{product_id}/attributes
AttributesApi update_product_attribute PUT /attributes/{attribute_id}
BlogCategoriesApi get_blog_categories GET /blog-categories
BlogCategoriesApi get_blog_category GET /blog-categories/{blog_category_id}
BlogPagesApi get_blog_page GET /blog-pages/{blog_page_id}
BlogPagesApi get_blog_pages GET /blog-pages
BookmarksApi attach_bookmark_to_customer POST /customers/{customer_id}/bookmarks
BookmarksApi detach_bookmark_from_customer DELETE /customers/{customer_id}/bookmarks/{product_id}
BookmarksApi get_customer_bookmarks GET /customers/{customer_id}/bookmarks
CMSCategoriesApi create_cms_category POST /cms-categories
CMSCategoriesApi get_cms_categories GET /cms-categories
CMSCategoriesApi update_cms_category PUT /cms-categories/{cms_category_id}
CMSPagesApi create_cms_page POST /cms-pages
CMSPagesApi get_cms_pages GET /cms-pages
CMSPagesApi update_cms_page PUT /cms-pages/{cms_page_id}
CartRulesApi attach_cart_rule_to_cart POST /carts/{cart_id}/cart-rules
CartRulesApi create_cart_rule POST /cart-rules
CartRulesApi delete_cart_rule DELETE /cart-rules/{cart_rule_id}
CartRulesApi get_cart_rule GET /cart-rules/{cart_rule_id}
CartRulesApi get_cart_rules GET /cart-rules
CartRulesApi update_cart_rule PUT /cart-rules/{cart_rule_id}
CartsApi add_product_to_cart POST /carts/{cart_id}/products
CartsApi attach_cart_rule_to_cart POST /carts/{cart_id}/cart-rules
CartsApi attach_cart_to_customer POST /customers/{customer_id}/carts
CartsApi create_cart POST /carts
CartsApi delete_cart DELETE /carts/{cart_id}
CartsApi delete_product_from_cart DELETE /carts/{cart_id}/products
CartsApi get_cart GET /carts/{cart_id}
CartsApi get_customer_carts GET /customers/{customer_id}/carts
CartsApi get_last_cart GET /customers/{customer_id}/last-cart
CartsApi get_payment_url GET /carts/{cart_id}/payments/{payment_name}
CartsApi update_cart PUT /carts/{cart_id}
CartsApi validate_cart POST /carts/{cart_id}/payments/{payment_name}/validate
CartsApi validate_free_order POST /carts/{cart_id}/validate-free-order
CategoriesApi create_category POST /categories
CategoriesApi get_available_category GET /categories-accesses/{category_id}
CategoriesApi get_categories GET /categories
CategoriesApi get_categories_from_category GET /categories/{category_id}/categories
CategoriesApi get_category GET /categories/{category_id}
CategoriesApi get_category_banner GET /categories/{category_id}/banner
CategoriesApi get_category_features GET /categories/{category_id}/features
CategoriesApi get_category_products GET /categories/{category_id}/products
CategoriesApi get_product_categories GET /products/{product_id}/categories
CategoriesApi get_subscription_categories GET /subscriptions/{subscription_id}/categories
CountriesApi get_countries GET /countries
CurrenciesApi get_currencies GET /currencies
CustomerThreadsApi get_customer_thread GET /customer-threads/{customer_thread_id}
CustomerThreadsApi get_customer_threads GET /customer-threads
CustomersApi attach_cart_to_customer POST /customers/{customer_id}/carts
CustomersApi check_customer_credentials POST /customers/check-credentials
CustomersApi create_customer POST /customers
CustomersApi create_facebook_id POST /customers/facebook
CustomersApi delete_customer DELETE /customers/{customer_id}
CustomersApi generate_authentication_token GET /customers/{customer_id}/authentication-token
CustomersApi get_customer GET /customers/{customer_id}
CustomersApi get_customer_accesses_subscriptions GET /customers/{customer_id}/accesses/subscriptions
CustomersApi get_customer_accesses_videos GET /customers/{customer_id}/accesses/videos
CustomersApi get_customer_address GET /customers/{customer_id}/address
CustomersApi get_customer_can_see_product GET /customers/{customer_id}/products/{product_id}/can-see
CustomersApi get_customer_current_views GET /customers/{customer_id}/current-views
CustomersApi get_customer_groups GET /customers/{customer_id}/groups
CustomersApi get_customer_has_access_to_product GET /customers/{customer_id}/products/{product_id}/has-access
CustomersApi get_customer_has_access_to_video GET /customers/{customer_id}/videos/{video_id}/has-access
CustomersApi get_customer_orders GET /customers/{customer_id}/orders
CustomersApi get_customers GET /customers
CustomersApi get_facebook_customer GET /customers/facebook/{facebook_id}
CustomersApi get_payment_customer_id GET /customers/{customer_id}/payments/{payment_name}/customer
CustomersApi update_customer PUT /customers/{customer_id}
DirectorsApi create_director POST /directors
DirectorsApi delete_director DELETE /directors/{director_id}
DirectorsApi get_director GET /directors/{director_id}
DirectorsApi get_directors GET /directors
DirectorsApi get_product_directors GET /products/{product_id}/directors
DirectorsApi update_director PUT /directors/{director_id}
ExtractsApi attach_cover_to_extract POST /extracts/{extract_id}/cover
ExtractsApi create_extract POST /extracts
ExtractsApi delete_extract DELETE /extracts/{extract_id}
ExtractsApi get_extract_player GET /extracts/{extract_id}/player
ExtractsApi get_product_extracts GET /products/{product_id}/extracts
ExtractsApi update_extract PUT /extracts/{extract_id}
FeatureValuesApi attach_features_to_product POST /products/{product_id}/features
FeatureValuesApi attach_features_to_video POST /videos/{video_id}/features
FeatureValuesApi detach_feature_to_product DELETE /products/{product_id}/features/{feature_id}
FeatureValuesApi get_feature_values GET /feature-values
FeaturesApi attach_features_to_product POST /products/{product_id}/features
FeaturesApi attach_features_to_video POST /videos/{video_id}/features
FeaturesApi detach_feature_to_product DELETE /products/{product_id}/features/{feature_id}
FeaturesApi get_category_features GET /categories/{category_id}/features
FeaturesApi get_feature_values GET /feature-values
FeaturesApi get_features GET /features
FeaturesApi get_product_features GET /products/{product_id}/features
FeaturesApi get_video_features GET /videos/{video_id}/features
GendersApi get_genders GET /genders
GeolocationsApi geolocations POST /geolocations
GeolocationsApi get_product_geolocations GET /products/{product_id}/geolocations
GeolocationsApi get_product_geolocations_by_ip POST /products/{product_id}/geolocations
GeolocationsApi get_video_geolocation_by_ip POST /videos/{video_id}/geolocations/{ip_address}
GeolocationsApi set_product_geolocation PUT /products/{product_id}/geolocations
GeolocationsApi set_video_geolocation PUT /videos/{video_id}/geolocations
GroupsApi attach_customer_to_group POST /groups/{group_id}/customers
GroupsApi detach_customer_from_group DELETE /groups/{group_id}/customers/{customer_id}
GroupsApi get_group GET /groups/{group_id}
GroupsApi get_groups GET /groups
GroupsApi get_product_groups GET /products/{product_id}/groups
ImagesApi delete_product_screenshot DELETE /products/{product_id}/screenshots/{image_id}
ImagesApi get_actor_cover_image GET /actors/{actor_id}/cover
ImagesApi get_category_banner GET /categories/{category_id}/banner
ImagesApi get_director_cover_image GET /directors/{director_id}/cover
ImagesApi get_intro_image GET /widgets/intro/images
ImagesApi get_product_cover_image GET /products/{product_id}/cover
ImagesApi get_product_images GET /products/{product_id}/images
ImagesApi get_product_screenshots GET /products/{product_id}/screenshots
ImagesApi get_subscription_cover_image GET /subscriptions/{subscription_id}/cover
ImagesApi get_video_cover GET /videos/{video_id}/cover
ImagesApi upload_actor_cover POST /actors/{actor_id}/cover
ImagesApi upload_category_banner POST /category/{category_id}/banner
ImagesApi upload_director_cover POST /directors/{director_id}/cover
ImagesApi upload_product_cover POST /products/{product_id}/cover
ImagesApi upload_product_screenshot PUT /products/{product_id}/screenshots/{image_id}
ImagesApi upload_product_screenshots POST /products/{product_id}/screenshots
ImagesApi upload_subscription_cover POST /subscriptions/{subscription_id}/cover
LanguagesApi get_languages GET /languages
MediaFilesApi get_media_source_files GET /media-sources/{source_id}/files
MediaFilesApi post_media_source_files POST /media-sources/{source_id}/files
MediaSourcesApi get_media_source GET /media-sources/{source_id}
MediaSourcesApi get_media_source_files GET /media-sources/{source_id}/files
MediaSourcesApi get_media_sources GET /media-sources
MediaSourcesApi post_media_source_files POST /media-sources/{source_id}/files
OAuthApi get_token POST /get-token
OrderHistoriesApi get_order_histories GET /orders/{order_id}/histories
OrderStatesApi get_order_state GET /order-states/{order_state_id}
OrderStatesApi get_order_states GET /order-states
OrdersApi get_customer_orders GET /customers/{customer_id}/orders
OrdersApi get_order GET /orders/{order_id}
OrdersApi get_order_histories GET /orders/{order_id}/histories
OrdersApi get_order_invoice GET /orders/{order_id}/invoice
OrdersApi get_orders GET /orders
PaymentModulesApi get_payment_modules GET /payment-modules
PaymentModulesApi get_payment_url GET /carts/{cart_id}/payments/{payment_name}
PaymentModulesApi validate_cart POST /carts/{cart_id}/payments/{payment_name}/validate
PaymentModulesApi validate_free_order POST /carts/{cart_id}/validate-free-order
ProductAccessesApi create_product_access POST /product-accesses
ProductAccessesApi delete_product_access DELETE /product-accesses/{product_access_id}
ProductAccessesApi get_customer_accesses_subscriptions GET /customers/{customer_id}/accesses/subscriptions
ProductAccessesApi get_customer_accesses_videos GET /customers/{customer_id}/accesses/videos
ProductAccessesApi get_product_access GET /product-accesses/{product_access_id}
ProductAccessesApi get_product_accesses GET /product-accesses
ProductAccessesApi stop_subscription PUT /customers/{customer_id}/unsubscribe
ProductAccessesApi update_product_access PUT /product-accesses/{product_access_id}
ProductsApi attach_features_to_product POST /products/{product_id}/features
ProductsApi attach_product_to_actor POST /products/{product_id}/actors
ProductsApi attach_product_to_category POST /products/{product_id}/categories
ProductsApi attach_product_to_director POST /products/{product_id}/directors
ProductsApi attach_product_to_group POST /products/{product_id}/groups
ProductsApi attach_video_to_product POST /products/{product_id}/videos
ProductsApi create_product POST /products
ProductsApi delete_product DELETE /products/{product_id}
ProductsApi detach_feature_to_product DELETE /products/{product_id}/features/{feature_id}
ProductsApi detach_product_from_actor DELETE /products/{product_id}/actors/{actor_id}
ProductsApi detach_product_from_category DELETE /products/{product_id}/categories/{category_id}
ProductsApi detach_product_from_director DELETE /products/{product_id}/directors/{director_id}
ProductsApi detach_product_from_group DELETE /products/{product_id}/groups/{group_id}
ProductsApi get_category_products GET /categories/{category_id}/products
ProductsApi get_customer_has_access_to_product GET /customers/{customer_id}/products/{product_id}/has-access
ProductsApi get_product GET /products/{product_id}
ProductsApi get_product_actors GET /products/{product_id}/actors
ProductsApi get_product_attributes GET /products/{product_id}/attributes
ProductsApi get_product_availability GET /products/{product_id}/access
ProductsApi get_product_categories GET /products/{product_id}/categories
ProductsApi get_product_cover_image GET /products/{product_id}/cover
ProductsApi get_product_directors GET /products/{product_id}/directors
ProductsApi get_product_extracts GET /products/{product_id}/extracts
ProductsApi get_product_features GET /products/{product_id}/features
ProductsApi get_product_geolocations GET /products/{product_id}/geolocations
ProductsApi get_product_geolocations_by_ip POST /products/{product_id}/geolocations
ProductsApi get_product_groups GET /products/{product_id}/groups
ProductsApi get_product_images GET /products/{product_id}/images
ProductsApi get_products GET /products
ProductsApi get_products_from_product GET /products/{product_id}/products
ProductsApi get_videos_from_product GET /products/{product_id}/videos
ProductsApi search_products GET /products/search/{search_query}
ProductsApi set_product_geolocation PUT /products/{product_id}/geolocations
ProductsApi update_product PUT /products/{product_id}
ProductsApi update_product_group_restriction_behavior PUT /products/{product_id}/groups/behavior
StatsApi get_customer_group_total_watched GET /video-stats/customer-group
StatsApi get_customer_sessions GET /video-stats/sessions
StatsApi get_customer_video_stats GET /video-stats/customers
StatsApi get_video_stats GET /video-stats/videos
SubscriptionsApi get_disabled_subscriptions GET /videos/{video_id}/disabled-subscriptions
SubscriptionsApi get_subscription GET /subscriptions/{subscription_id}
SubscriptionsApi get_subscription_categories GET /subscriptions/{subscription_id}/categories
SubscriptionsApi get_subscription_cover_image GET /subscriptions/{subscription_id}/cover
SubscriptionsApi get_subscriptions GET /subscriptions
TasksApi create_task POST /tasks
VideosApi attach_cover_to_video POST /videos/{video_id}/cover
VideosApi attach_features_to_video POST /videos/{video_id}/features
VideosApi attach_video_to_product POST /products/{product_id}/videos
VideosApi create_video POST /videos
VideosApi delete_video DELETE /videos/{video_id}
VideosApi get_customer_has_access_to_video GET /customers/{customer_id}/videos/{video_id}/has-access
VideosApi get_disabled_subscriptions GET /videos/{video_id}/disabled-subscriptions
VideosApi get_video GET /videos/{video_id}
VideosApi get_video_access GET /videos/{video_id}/customers/{customer_id}/access
VideosApi get_video_bonus GET /videos/{video_id}/bonus
VideosApi get_video_download_url GET /videos/{video_id}/download-url
VideosApi get_video_features GET /videos/{video_id}/features
VideosApi get_video_geolocation GET /videos/{video_id}/geolocation
VideosApi get_video_geolocation_by_ip POST /videos/{video_id}/geolocations/{ip_address}
VideosApi get_video_player GET /videos/{video_id}/player
VideosApi get_video_subtitles GET /videos/{video_id}/subtitles
VideosApi get_video_views GET /videos/{video_id}/views
VideosApi get_videos GET /videos
VideosApi get_videos_from_product GET /products/{product_id}/videos
VideosApi set_video_geolocation PUT /videos/{video_id}/geolocations
VideosApi update_video PUT /videos/{video_id}
WidgetsApi get_intro_image GET /widgets/intro/images
WidgetsApi get_widget_footer_menu GET /widgets/footer-menu
WidgetsApi get_widget_slider GET /widgets/slider
WidgetsApi get_widget_slider_item GET /widgets/slider/{slider_id}
WidgetsApi get_widget_top_menu GET /widgets/top-menu

Documentation For Models

You can’t perform that action at this time.