Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/e0ipso/mpx-php
- Owner: e0ipso
- Created: 2015-06-23T05:50:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-24T19:37:48.000Z (over 9 years ago)
- Last Synced: 2024-10-12T02:26:38.500Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
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)));
```