I want to paginate the Google Drive
files using Google Drive
API client library.
I'm using Google Drive Service account with ASP.Net C#. To populate the uploaded files I'm using the following code-
FilesResource.ListRequest list = service.Files.List();
list.MaxResults = 1000;
if (search != null)
{
list.Q = search;
}
FileList filesFeed = list.Execute();
foreach (File item in filesFeed.Items)
{
// loop the files
}
Suppose there are 100 files in my account.
How could I paginate the files like 10 records for each page?