movingimage/vm6-api-client

API client library for the Video Manager 6 REST API

v1.0.1 2018-02-08 13:36 UTC

This package is not auto-updated.

Last update: 2024-12-17 04:32:04 UTC


README

Build Status License Latest Unstable Version Latest Stable Version

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

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.