title: Google Drive - How to List all Files in a specified folder
body: <p>Hi I am stuck here with this situation, I have tried a number of different approaches but I cannot get what I am after.</p>
  
  <p>Situation:
  I have a large number of files in folders hosted on google drive.
  For instance a single client folder for reports has between 2000-10000 files(this will only get bigger), I want to be able to list these files with there title and file id and parent folder id so I can create direct links to the files.
  From my understanding I am able to do this with google drive: drive-api-client-php
  I have setup a project and have a Client ID and Client secret, I have downloaded subversion composer and google-api and drive-api-client-php and use XAMPP</p>
  
  <p>What I have done so far:
  I have been through googles documentation and watch tutorial video they offer.
  I have tried the <a href="https://developers.google.com/drive/v2/reference/files/list" rel="noreferrer">google sample</a> they have available on there web page and it is the beginnings of what I need.
  This will list the files in the folder with the ID and Title or what ever fields you choose - two issues here is that you cannot specify the folder you want the results of and the max number of results is limited to 1000. I'm in need of 10,000.</p>
  
  <p>I have also looked at some google apps script <a href="http://ctrlq.org/code/19854-list-files-in-google-drive-folder" rel="noreferrer">here</a>, which seems to be used like vba in excel to pull file ids and titles etc, however this is also limited to max number of results and then time out issues. This is the exact type of result I want just with out the limitations.</p>
  
  <p>My Question is:
  What are my options on listing 10,000 file ID's with Titles in a specified folder of google drive and what is the process from start to finish as I feel like I might be missing a fundamental point early on which is effecting my result possibilities.
  I am flexible on this and I can work with the data after it is extracted just getting the data is key for me first.
  look forward to your reply's, many thanks.
  I hope this is clear enough and makes sense.</p>