42videobricks / php-client
42videobricks is a Video Platform As A Service (VPaaS)
1.4.0
2024-07-31 09:20 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2024-11-08 18:27:56 UTC
README
42videobricks is a Video Platform As A Service (VPaaS)
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
To install the bindings via Composer, add the following to composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" } ], "require": { "GIT_USER_ID/GIT_REPO_ID": "*@dev" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
<?php require_once('/path/to/Package\Subpackage/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: gw-42vb-authorizer $config = Api42Vb\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Api42Vb\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer'); $apiInstance = new Api42Vb\Client\Api\DataApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $limit = 56; // int | Number of elements to return (default=10) $offset = 56; // int | offset for pagination $start_date = {{starDate}}; // string | Start date for the period $end_date = {{endDate}}; // string | End date for the period try { $result = $apiInstance->getDataVideoAnalytics($limit, $offset, $start_date, $end_date); print_r($result); } catch (Exception $e) { echo 'Exception when calling DataApi->getDataVideoAnalytics: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://api-sbx.42videobricks.com
Models
- DataVideoAnalytic
- DataVideoAnalyticList
- DataVideoUsage
- DataVideoUsageList
- Error
- Export
- ExportList
- ExportProperties
- GetScenesByLiveId200Response
- Link
- Live
- LiveAllOfAssets
- LiveList
- LiveProperties
- LiveStatus
- Pagination
- Playlist
- PlaylistAssets
- PlaylistList
- PlaylistProperties
- Scene
- Slate
- TagList
- Video
- VideoAssets
- VideoAttachment
- VideoAttachmentList
- VideoList
- VideoMultipartUploadFinalize
- VideoMultipartUploadFinalizePartsInner
- VideoMultipartUploadInit
- VideoMultipartUploadInitResponse
- VideoMultipartUploadInitResponsePartsInner
- VideoProperties
- VideoStatus
- VideoUploadInitResponse
- Webhook
- WebhookList
- WebhookProperties
Authorization
Authentication schemes defined for the API:
api_key
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
gw-42vb-authorizer
- Type: API key
- API key parameter name: x-api-key
- Location: HTTP header
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.4
- Package version:
1.4.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen