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: 26 days 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-05-21T12:35:47.608Z (6 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)));
```