Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/e0ipso/mpx-php

HTTP client library to interact with the thePlatform MPX video service.
https://github.com/e0ipso/mpx-php

Last synced: about 2 months ago
JSON representation

HTTP client library to interact with the thePlatform MPX video service.

Awesome Lists containing this project

README

        

# MPX PHP
Guzzle client that interacts with the MPX thePlatform video service.

## Usage example
```php
$c['base_url'])
);
};
$container['client'] = function ($c) {
return new MpxClient($c['guzzle_client']);
};

$container['feed_config'] = function ($c) {
$config = array(
'client' => $c['client'],
'account_pid' => '5NKIOC',
'feed_pid' => 'F_jM8p%s39dL',
'guids' => array('2822493')
);
return Config::createFromConfig($config);
};

// Create client.
$client = FeedMediaClient::create($container);

// Add additional query string parameters.
$query = new Query();
$query->add('form', MpxClient::FORMAT_CJSON);
$query->add('fields', 'id,guid');

var_dump($client->fetch(array('query' => $query)));
```