title: Google drive api scope
body: <p>This is my code</p>
  
  <pre><code>&lt;?php
  
      require_once     '/home/bachus03/domains/bachus03.vot.pl/public_html/fb/vendor/autoload.php';
  
      putenv('GOOGLE_APPLICATION_CREDENTIALS=/home/bachus03/domains/bachus03.vot.pl/public_html/fb/public/service-account.json');
      $client = new Google_Client();
      $client-&gt;setScopes(['https://www.googleapis.com/auth/drive.metadata']);
      $client-&gt;useApplicationDefaultCredentials();
  
      $files = new Google_Service_Drive_DriveFile($client);
      $response = $files-&gt;getOwners();
      echo json_encode($response) . "\n";
  
  ?&gt;
  </code></pre>
  
  <p>And after I run my test.php script I get: </p>
  
  <pre><code>[bachus03@s14:: ~ ]:$    /usr/local/php/p56/bin/php   /home/bachus03/domains/bachus03.vot.pl/public_html/fb/public/test.php
  NUll
  </code></pre>
  
  <p>What I am doing wrong?</p>