Вы можете попробовать следующий фрагмент кода
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var findRooms = await graphClient.Me
.FindRooms("Building2Rooms@YourOrganization.onmicrosoft.com")
.Request()
.GetAsync();
Так как Microsoft Graph beta version
, значит, у вас установлена Microsoft.Graph.Beta package
. См. Снимок экрана ниже
![enter image description here](https://i.stack.imgur.com/lbpGc.png)
Для получения более подробной информации см. официальные документы
Обновление:
Вы можете $filter
ваш запрос, как этот формат:
HttpClient client = new HttpClient();
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, "https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$filter=ReceivedDateTime ge 2017-04-01 and receivedDateTime lt 2017-05-01");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", "eyJ0eXAiOiJKV1QiLCJub25jZSI6IkFRQUJBQUFB");
HttpResponseMessage response = await client.SendAsync(request);
string output = await response.Content.ReadAsStringAsync();