title: Google drive API is not allowing to upload files without authentication with PHP
body: <p>I am using this library the Google php client library and following the <a href="https://developers.google.com/drive/api/v3/quickstart/php" rel="nofollow noreferrer">google drive quickstart</a> tutorial.</p>
  
  <pre><code>$client = new Google_Client();
  $client-&gt;setApplicationName('Google Drive API PHP Quickstart');
  $client-&gt;setScopes(Google_Service_Drive::DRIVE_METADATA_READONLY);
  $client-&gt;setAuthConfig('credentials.json');
  $client-&gt;setAccessType('offline');
  </code></pre>
  
  <p>I am trying to upload my files from my PHP application to Google Drive. When I run the application to upload, it is asking for authorization. To do this its requiring that i login to my google account and consent the access to my drive account before coming back to my application. </p>
  
  <p>I want to skip this step. How do i upload to google drive without requiring authorization to Google.</p>