kinow-io / kinow-php-sdk
Installs: 52 562
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 6
Open Issues: 2
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
- dev-master
- 2.0.28
- 2.0.27
- 2.0.26
- 2.0.25
- 2.0.24
- 2.0.23
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.4.58
- 1.4.57
- 1.4.56
- 1.4.55
- 1.4.54
- 1.4.53
- 1.4.52
- 1.4.51
- 1.4.50
- 1.4.46
- 1.4.45
- 1.4.44
- 1.4.41
- 1.4.40
- 1.4.39
- 1.4.38
- 1.4.37
- 1.4.36
- 1.4.35
- 1.4.34
- 1.4.33
- 1.4.32
- 1.4.31
- 1.4.30
- 1.4.28
- 1.4.27
- 1.4.26
- 1.4.25
- 1.4.24
- 1.4.23
- 1.4.22
- 1.4.21
- 1.4.20
- 1.4.19
- 1.4.18
- 1.4.17
- 1.4.15
- 1.4.14
- 1.4.12
- 1.4.11
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.3.81
- 1.3.80
- 1.3.79
- 1.3.78
- 1.3.77
- 1.3.76
- 1.3.75
- 1.3.74
- 1.3.73
- 1.3.72
- 1.3.71
- 1.3.70
- 1.3.69
- 1.3.68
- 1.3.67
- 1.3.66
- 1.3.65
- 1.3.64
- 1.3.63
- 1.3.62
- 1.3.61
- 1.3.60
- 1.3.59
- 1.3.58
- 1.3.57
- 1.3.56
- 1.3.55
- 1.3.54
- 1.3.53
- 1.3.50
- 1.3.49
- 1.3.48
- 1.3.47
- 1.3.46
- 1.3.45
- 1.3.44
- 1.3.43
- 1.3.42
- 1.3.41
- 1.3.40
- 1.3.39
- 1.3.38
- 1.3.37
- 1.3.36
- 1.3.35
- 1.3.34
- 1.3.33
- 1.3.32
- 1.3.31
- 1.3.30
- 1.3.28
- 1.3.27
- 1.3.26
- 1.3.25
- 1.3.24
- 1.3.23
- 1.3.20
- 1.3.19
- 1.3.13
- 1.3.10
- 1.3.9
- 1.3.8
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.85
- 1.0.84
- 1.0.83
- 1.0.82
- 1.0.81
- 1.0.80
- 1.0.79
- 1.0.78
- 1.0.76
- 1.0.75
- 1.0.73
- 1.0.72
- 1.0.71
- 1.0.70
- 1.0.69
- 1.0.68
- 1.0.67
- 1.0.66
- 1.0.65
- 1.0.64
- 1.0.63
- 1.0.59
- 1.0.58
- 1.0.57
- 1.0.56
- 1.0.55
- 1.0.54
- 1.0.53
- 1.0.52
- 1.0.51
- 1.0.50
- 1.0.49
- 1.0.48
- 1.0.47
- 1.0.46
- 1.0.45
- 1.0.44
- 1.0.43
- 1.0.42
- 1.0.41
- 1.0.40
- 1.0.39
- 1.0.38
- 1.0.37
- 1.0.36
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.9-rc1
- 1.0.7
- 1.0.5
- 1.0.3
- 1.0.2
- 1.0.0
This package is auto-updated.
Last update: 2024-11-12 14:08:40 UTC
README
Requirements
PHP 5.4.0 and later
Installation & Usage
Composer
Method 1:
To install the bindings via Composer, type in your console: composer require kinow-io/kinow-php-sdk
Method 2:
To install the bindings via Composer, add the following to composer.json
:
{ "repositories": [{ "type": "git", "url": "https://github.com/kinow-io/kinow-php-sdk.git" }], "require": { "kinow-io/kinow-php-sdk": "^1.0" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/KinowClient/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?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\ActorsApi(); $category_id = 789; // int | Category ID to fetch $actor_id = 789; // int | Actor ID to attach try { $api_instance->attachActorToCategory($category_id, $actor_id); } catch (Exception $e) { echo 'Exception when calling ActorsApi->attachActorToCategory: ', $e->getMessage(), PHP_EOL; } ?>
Enable Debug Logs
You can enable debug logging to get information about what is sent or received by the SDK. The logs will be available in the 'output' file at the root of your server.
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::getDefaultConfiguration()->setDebug(true); // (optionally) Change debug file location (default is 'php://output') Kinow\Client\Configuration::getDefaultConfiguration()->setDebugFile('php://output');
Documentation for API Endpoints
All URIs are relative to https://api.kinow.com/api
Documentation For Models
- Actor
- ActorListResponse
- ActorProduct
- ActorProductListResponse
- ActorProductRole
- ActorProductRoleListResponse
- ActorResponse
- ActorRole
- ActorRoleListResponse
- AddProductToCartRequest
- Address
- AddressResponse
- Analytic
- AnalyticListResponse
- Attachment
- BlogCategory
- BlogCategoryListResponse
- BlogCategoryResponse
- BlogPage
- BlogPageListResponse
- BlogPageProductsResponse
- BlogPageResponse
- Bonus
- CMSCategoriesListResponse
- CMSCategory
- CMSCategoryListResponse
- CMSCategoryResponse
- CMSPage
- CMSPageListResponse
- CMSPageResponse
- Cart
- CartIDList
- CartListResponse
- CartListResponse1
- CartPrice
- CartPriceRequest
- CartProduct
- CartResponse
- CartRule
- CartRuleListResponse
- CartRulePrice
- CartRuleResponse
- CartRuleRestrictionGroup
- CartRuleRestrictionGroupItem
- Category
- CategoryActorsListResponse
- CategoryDirectorsListResponse
- CategoryImagesListResponse
- CategoryListResponse
- CategoryResponse
- Comment
- CommentListResponse
- CommentListResponse1
- CommentResponse
- Configuration
- ConfigurationListResponse
- ConfigurationResponse
- Contact
- ContactListResponse
- ConvertMediaLiveRequest
- Country
- CountryListResponse
- CreateActorRequest
- CreateAttributeRequest
- CreateCMSCategoryRequest
- CreateCMSPageRequest
- CreateCartRequest
- CreateCartRuleRequest
- CreateCategoryRequest
- CreateCommentRequest
- CreateCustomerRequest
- CreateDeviceRequest
- CreateDirectorRequest
- CreateExtractRequest
- CreateExtractSubtitleRequest
- CreateFreeGiftRequest
- CreateGiftRequest
- CreateGroupRequest
- CreateMediaFileRequest
- CreateMediaLiveRequest
- CreateMessageRequest
- CreateProductAccessRequest
- CreateProductRequest
- CreateTaskRequest
- CreateVideoRequest
- CreateVideoStatSessionRequest
- CreateVideoStatSessionResponse
- CreateVideoSubtitleRequest
- CredentialsValidationResponse
- Currency
- CurrencyListResponse
- CurrencyListResponse1
- Customer
- CustomerCommentListResponse
- CustomerCommentListResponse1
- CustomerCommentResponse
- CustomerCurrentViewsResponse
- CustomerGroupVideoStats
- CustomerGroupVideoStatsListResponse
- CustomerId
- CustomerListResponse
- CustomerResponse
- CustomerVideoStats
- CustomerVideoStatsListResponse
- Device
- DeviceListResponse
- DeviceResponse
- Director
- DirectorListResponse
- DirectorProduct
- DirectorProductListResponse
- DirectorProductRole
- DirectorProductRoleListResponse
- DirectorResponse
- DirectorRole
- DirectorRoleListResponse
- DownloadInformations
- Employee
- EmployeeListResponse
- EmployeeResponse
- Extract
- ExtractAccessInfo
- ExtractIDList
- ExtractListResponse
- ExtractResponse
- ExtractSubtitlesResponse
- Feature
- FeatureListResponse
- FeatureValue
- FeatureValueListResponse
- FeatureValueListResponse1
- Features
- FreeGift
- FreeGiftListResponse
- FreeGiftResponse
- Gender
- GenderListResponse
- Geoloc
- GeolocSettings
- GeolocSettingsResponse
- GeolocationListResponse
- Gift
- GiftListResponse
- GiftResponse
- GiftToken
- GiftTokenResponse
- GoogleAnalyticsResponse
- Group
- GroupListResponse
- GroupResponse
- I18nField
- I18nFieldInput
- IPCoordinates
- IPLocation
- IPLocationResponse
- Image
- ImageListResponse
- ImageResponse
- ImageType
- Language
- LanguageListResponse
- LogoSettings
- MediaFile
- MediaFileListResponse
- MediaFileResponse
- MediaFileStream
- MediaFileStreamListResponse
- MediaSource
- MediaSourceListResponse
- MediaSourceResponse
- Order
- OrderHistory
- OrderHistoryListResponse
- OrderListResponse
- OrderResponse
- OrderState
- OrderStateListResponse
- OrderStateResponse
- Page
- PageListResponse
- PageResponse
- Pagination
- PaymentArguments
- PaymentArgumentsResponse
- PaymentDetails
- PaymentDetailsResponse
- PaymentMethods
- PaymentModule
- PaymentModuleListResponse
- PaymentModuleListResponse1
- PaymentToken
- PaymentToken1
- PaymentUrlResponse
- PlatformAccess
- PlatformAccessResponse
- Player
- PlayerConfiguration
- Playlist
- PlaylistListResponse
- PlaylistResponse
- PlaylistUpdate
- PrepaymentBalance
- PrepaymentBonus
- PrepaymentBonusAmount
- PrepaymentBonusIDList
- PrepaymentBonusListResponse
- PrepaymentBonusResponse
- PrepaymentOperation
- PrepaymentOperationAmount
- PrepaymentOperationIDList
- PrepaymentOperationListResponse
- PrepaymentOperationResponse
- PrepaymentRecharge
- PrepaymentRechargeListResponse
- PrepaymentRechargeResponse
- Product
- ProductAccess
- ProductAccessInfo
- ProductAccessInfoResponse
- ProductAccessListResponse
- ProductAccessResponse
- ProductAttribute
- ProductAttributeListResponse
- ProductCategories
- ProductCommentListResponse
- ProductCommentListResponse1
- ProductCommentResponse
- ProductIDList
- ProductIDList1
- ProductImageListResponse
- ProductListResponse
- ProductPrice
- ProductPriceAttribute
- ProductResponse
- ProductVideoListResponse
- Promotion
- RegistrationField
- RegistrationFieldsResponse
- RemoveProductFromCartRequest
- SessionVideoStat
- SessionVideoStatListResponse
- SocialSettings
- State
- StateListResponse
- Subscription
- SubscriptionListResponse
- SubscriptionResponse
- Subtitle
- SubtitleListResponse
- SubtitleResponse
- Support
- SupportMessage
- SupportResponse
- Tag
- Task
- TaskResponse
- TaxPrice
- TaxRule
- TaxRuleListResponse
- TokenResponse
- UpdateActorRequest
- UpdateAddressRequest
- UpdateCMSCategoryRequest
- UpdateCMSPageRequest
- UpdateCartRequest
- UpdateCartRuleRequest
- UpdateCategoryRequest
- UpdateCustomerRequest
- UpdateDirectorRequest
- UpdateExtractRequest
- UpdateFreeGiftRequest
- UpdateGiftRequest
- UpdatePaymentRequest
- UpdateProductAccessRequest
- UpdateProductRequest
- UpdateVideoRequest
- Video
- VideoAccessInfo
- VideoAccessInfoResponse
- VideoCategory
- VideoCategoryListResponse
- VideoFreeAccess
- VideoGroup
- VideoGroupListResponse
- VideoGroupResponse
- VideoIDList
- VideoIDList1
- VideoIDList2
- VideoListResponse
- VideoResponse
- VideoStat
- VideoStatListResponse
- VideoStatsVideosWatchingResponse
- VideoViewInformations
- VideoViews
- VideoWatching
- View
- WidgetFooterMenu
- WidgetFooterMenuListResponse
- WidgetHomeRail
- WidgetHomeRailListResponse
- WidgetHomeRailVideoListResponse
- WidgetHookPhrase
- WidgetHookPhraseListResponse
- WidgetSlider
- WidgetSliderListResponse
- WidgetSliderResponse
- WidgetSliderVideo
- WidgetTopMenu
- WidgetTopMenuListResponse