recupere le nom d'un document dans google drive drive api code example
Example: recupere le nom d'un document dans google drive drive api
private static IConfigurableHttpClientInitializer Authenticate()
{
X509Certificate2 cert = new X509Certificate2(@"CheminVersVotreFichierP12.p12", "notasecret", X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.Exportable);
ServiceAccountCredential cred = new ServiceAccountCredential(
new ServiceAccountCredential.Initializer("[email protected]")
{
User = "[email protected]",
Scopes = new[] { DriveService.Scope.Drive },
}.FromCertificate(cert));
return cred;
}