Код: Выделить всё
public void GetUserStorageUsage(string emailAddress)
{
// Create Directory API service.
DriveService driveService = new DriveService(new BaseClientService.Initializer()
{
HttpClientInitializer = GetOAuthCredential(),
ApplicationName = ApplicationName
});
var x = driveService.Drives.Get(emailAddress);
if(x !=null)
{
var z = x.Execute();
}
}
Код: Выделить всё
Google.GoogleApiException
HResult=0x80131500
Source=Google.Apis
StackTrace:
at Google.Apis.Requests.ClientServiceRequest`1.
d__38.MoveNext() in Google.Apis.Requests\ClientServiceRequest.cs:line 157
at Google.Apis.Requests.ClientServiceRequest`1.Execute() in Google.Apis.Requests\ClientServiceRequest.cs:line 103
at GoogleWorkspacePowerShellExtension.GSuiteManager.GetUserStorageUsage(String emailAddress) at TestSuite.TestSuite.Main(String[] args) in S:\GoogleAPIs\TestSuite\TestSuite.cs:line 14
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/789 ... -by-a-user