title: I can't see the files and folders created via api in my Google Drive using php
body: <p>I am trying to create folder using google drive api.  I am able to get file id at the end. but i am not able to my folder in google drive. it seems some permission issue?</p>
  
  <pre><code>$scopes = array(
      'https://www.googleapis.com/auth/drive',
      'https://www.googleapis.com/auth/drive.appdata','https://www.googleapis.com/auth/drive.apps.readonly',
      'https://www.googleapis.com/auth/drive.metadata','https://www.googleapis.com/auth/drive.file',
      'https://www.googleapis.com/auth/drive.readonly','https://www.googleapis.com/auth/drive.photos.readonly'
  );
  $creds = new Google_Auth_AssertionCredentials(
      $serviceAccountName,
      $scopes,
      file_get_contents($keyFile)
  );
  $client = new Google_Client();
  $client-&gt;setApplicationName($appName);
  $client-&gt;setClientId($clientId);
  $client-&gt;setAssertionCredentials($creds);
  $service = new Google_Service_Drive($client);
  $fileMetadata = new Google_Service_Drive_DriveFile(array(
    'name' =&gt; 'Invoices',
    'permissions' =&gt; array('type'=&gt;'anyone','role'=&gt;'reader','allowFileDiscovery'=&gt;1),
  
    'mimeType' =&gt; 'application/vnd.google-apps.folder'));
  $file = $service-&gt;files-&gt;create($fileMetadata, array());
  
  printf("File ID: %s\n", $file-&gt;id);
  </code></pre>