Это код: р>
Код: Выделить всё
string clientId = "My client Id";
string clientSecret = "The secret id value";
string tenantId = "My tenant id";
var clientSecretCredential = new ClientSecretCredential(tenantId, clientId, clientSecret);
var graphClient = new GraphServiceClient(clientSecretCredential);
var driveItems = await graphClient.Me.Drive.Root.Children.Request().GetAsync();
// Display the names of all items in the list
foreach (var item in driveItems)
{
Console.WriteLine(item.Name);
}
Я использую Microsoft.Graph v5.11 и Azure.Identity v1.9
Подробнее здесь: https://stackoverflow.com/questions/763 ... ot-working
Мобильная версия