I am using one of the Microsoft Graph API in my project, i.e Outlook mail - "listconferencerooms" api.
Although it is giving he result, but the rooms listed in the result is not as expected.
When I cross check the Api result with the Meeting rooms available in my mailbox, both are not matching. In fact everyday i see the same set of meeting rooms which is not changing as per availability.
Code as below,
[HttpGet]
[Route("api/GetMeetingRooms")]
public async Task<string> getMeetingRooms()
{
//HttpResponseMessage message = null;
try
{
AppConfig appConfig = new AppConfig();
string token = await appConfig.GetTokenForApplication();
string response = string.Empty;
using (var client = new HttpClient())
{
client.BaseAddress = new Uri("https://graph.microsoft.com/");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
HttpResponseMessage result = client.GetAsync("https://graph.microsoft.com/beta/me/findRooms").Result;
response = result.Content.ReadAsStringAsync().Result;
}
return response;
}
catch (Exception ex)
{
return ex.Message;
}
}
Kindly help me whether I am using correct API to get all available meeting, Conference rooms for my organization?
Or since the API is in Beta version I am not able to get the correct result.