title: Google Drive API V3 with PHP client 2.0 - download file contents and metadata in a single request
body: <p>I am trying to download files from Google Drive using PHP client v2.0 with Drive API V3.</p>
  
  <p>Is it possible to retrieve file's body and metadata in a single HTTP request?</p>
  
  <p>Supplying <code>'alt=media'</code> to <code>-&gt;files-&gt;get()</code> returns <code>GuzzleHttp\Psr7\Response</code> upon which I can run <code>-&gt;getBody()-&gt;__toString()</code>.</p>
  
  <p>If I do not provide <code>'alt=media'</code>, then <code>Google_Service_Drive_DriveFile</code> is returned that has all the metadata, but does not have body.</p>
  
  <p><strong>Question.</strong></p>
  
  <p>Is it possible to get both metadata and body in the same request?</p>