title: Extract Protected Request Response from AWS SDK for PHP
body: <p>I'm working with the new Amazon ElasticTranscoder service, and am new to working with the AWS-SDK. I have a successful script created that runs a <code>createJob</code> request, transcoding an Amazon S3 file from one format to another.</p>
  
  <p>The problem is, I can't seem to access the response <code>$data</code> that is returned when the request is made. I can see it, and it contains the information I need, but I receive this error when I attempted to store it:</p>
  
  <p><code>Fatal error:  Cannot access protected property Guzzle\Service\Resource\Model::$data</code></p>
  
  <p>Here's what my request looks like:</p>
  
  <pre><code>&lt;?php
  // Include the SDK
  require 'aws.phar';
  use Aws\ElasticTranscoder\ElasticTranscoderClient;
  
  // Setup the trancoding service tool(s)
  $client = ElasticTranscoderClient::factory( array(
      'key' =&gt; 'XXXXXXXXX',
      'secret' =&gt; 'XXXXXXXXX',
      'region' =&gt; 'us-east-1'
  ) );
  
  // Create a new transcoding job
  $file_name = '1362761118382-lqg0CvC1Z1.mov';
  $file_name_explode = explode( '.', $file_name );
  
  $webm_transcode_request = $client-&gt;createJob( array(
      'PipelineId' =&gt; '1362759955061-7ad779',
      'Input' =&gt; array(
          'Key' =&gt; $file_name,
          'FrameRate' =&gt; 'auto',
          'Resolution' =&gt; 'auto',
          'AspectRatio' =&gt; 'auto',
          'Interlaced' =&gt; 'auto',
          'Container' =&gt; 'auto',
      ),
      'Output' =&gt; array(
          'Key' =&gt; $file_name_explode[0] . '.webm',
          'ThumbnailPattern' =&gt; $file_name_explode[0] . '-thumb-{resolution}-{count}',
          'Rotate' =&gt; '0',
          'PresetId' =&gt; '1363008701532-b7d529' // BenchFly MP4
      )
  ) );
  
  // Print the response data
  echo '&lt;pre&gt;';
  var_dump( $webm_transcode_request-&gt;data );
  echo '&lt;/pre&gt;';
  ?&gt;
  </code></pre>
  
  <p>I've been banging my head against the wall trying to find some documentation on handling response requests with PHP and the AWS SDK, any help is very much appreciated.</p>