https://github.com/svilborg/guzzle-encoding-com
Guzzle PHP Library for Encoding.com's XML API
https://github.com/svilborg/guzzle-encoding-com
api encoding guzzle-php-library php
Last synced: about 1 year ago
JSON representation
Guzzle PHP Library for Encoding.com's XML API
- Host: GitHub
- URL: https://github.com/svilborg/guzzle-encoding-com
- Owner: svilborg
- License: apache-2.0
- Created: 2013-08-11T15:36:53.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-19T14:35:10.000Z (over 12 years ago)
- Last Synced: 2024-04-14T20:11:40.163Z (about 2 years ago)
- Topics: api, encoding, guzzle-php-library, php
- Language: PHP
- Size: 320 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Guzzle Client for Encoding.com API
================================================
[](https://travis-ci.org/svilborg/guzzle-encoding-com)
[](https://packagist.org/packages/svilborg/guzzle-encoding-com)
[](https://packagist.org/packages/svilborg/guzzle-encoding-com)
A Guzzle client for Encoding.com's XML API . (Note : Not offical)
## Installation
Install using composer
```
{
"require" : "svilborg/guzzle-encoding-com"
}
```
## Requirements
* PHP Version >=5.3.2.
* PHP Guzzle Library
* Requires a API Key and User ID from [Encoding.com](http://www.encoding.com/)
* [See also the API documentation](http://www.encoding.com/api)
## Usage
```php
use Gencoding\Guzzle\Encoding\EncodingClient;
$client = EncodingClient::factory(array(
'userid' => '12345',
'userkey' => 'X1Y2Z3A4B5C6'));
$command = $client->getCommand('GetMediaInfo', array(
"mediaid" => 8888888888
));
try {
$result = $command->getResult();
$resultObject = $result->getXmlElement();
} catch (\Exception $e) {
// Catch Errors
}
```
## Running Tests
First, install PHPUnit with `composer.phar install --dev`, then run
`./vendor/bin/phpunit`.