-
-
Save vman/efdd1ec0ef164b4349801d8dbbbcc1d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<OnlineMeetingServiceResponse> GetMeetingDetails(string serviceUrl, string meetingId) | |
{ | |
using var getRoleRequest = new HttpRequestMessage(HttpMethod.Get, new Uri(new Uri(serviceUrl), string.Format("v1/meetings/{0}", meetingId))); | |
getRoleRequest.Headers.Authorization = new AuthenticationHeaderValue("Bearer", await this.botCredentials.GetTokenAsync()); | |
using var getRoleResponse = await this.httpClient.SendAsync(getRoleRequest); | |
getRoleResponse.EnsureSuccessStatusCode(); | |
var meetingresponse = JsonConvert.DeserializeObject<OnlineMeetingServiceResponse>(await getRoleResponse.Content.ReadAsStringAsync()); | |
return meetingresponse; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment