>
> Ok, now this code is working but there is a problem.
>
When the program looks for files inside Google Drive i cant' see my files
but only a file called "Getting started".
If i open Google Drive from the website i haven't this file in my cloud,
but i can see only my files.... ?
Why ? With the code i look in the wrong directory ?
Thank you.
---------------------------------------------------------------------
string[] scopes = new string[] { DriveService.Scope.Drive };
GoogleCredential credential;
using (var stream = new FileStream(JSON_PATH, FileMode.Open,
FileAccess.Read))
{
credential = GoogleCredential.FromStream(stream);
}
DriveService service = new DriveService(new BaseClientService.
Initializer()
{
HttpClientInitializer = credential.CreateScoped(scopes),
ApplicationName = APPLICATION_NAME
});
FilesResource.ListRequest listRequest = service.Files.List();
IList<Google.Apis.Drive.v3.Data.File> files =
listRequest.Execute().Files;
if (files != null && files.Count > 0)
{
foreach (var file in files)
{
Console.WriteLine("{0} ({1}) {2}", file.Name,
file.Id);
}
}
------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/68ad2a3b-b9ae-4674-a2c0-0d07e28476f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.