movingimage / vm6-api-client
API client library for the Video Manager 6 REST API
v1.0.1
2018-02-08 13:36 UTC
Requires
- php: ^5.5 || ^7.0
- guzzlehttp/guzzle: ^6.0
- jms/serializer: ^1.0
- monolog/monolog: ^1.0
- movingimage/video-manager-meta: ^1.6.0
- psr/log: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^1.12
- phpunit/phpunit: ^4.5 || ^5.2
This package is not auto-updated.
Last update: 2024-11-19 04:05:37 UTC
README
Installation
To install the API client, run the following command:
$ composer require movingimage/vm6-api-client
Usage
To use the VM6 API Client, you can use the factory like this:
<?php use MovingImage\Client\VM6\Entity\ApiCredentials; use MovingImage\Client\VM6\ApiClientFactory; require_once('./vendor/autoload.php'); $baseUri = 'https://<api uri>'; $credentials = new ApiCredentials('<api key>', '<developer key>', '<client key>'); $factory = new ApiClientFactory(); $apiClient = $factory->createSimple($baseUri, $credentials); echo $apiClient->getChannels(5)->getName() . PHP_EOL;
Guzzle 5 is currently not supported.
Maintainers
- Ruben Knol - ruben.knol@movingimage.com
If you have questions, suggestions or problems, feel free to get in touch with the maintainers by e-mail.
Contributing
If you want to expand the functionality of the API clients, or fix a bug, feel free to fork and do a pull request back onto the 'master' branch. Make sure the tests pass.