PHP code example of svilborg / guzzle-encoding-com
1. Go to this page and download the library: Download svilborg/guzzle-encoding-com library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
svilborg / guzzle-encoding-com example snippets
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
}