Skip to content

Instantly share code, notes, and snippets.

@vman
Created February 6, 2022 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vman/efdd1ec0ef164b4349801d8dbbbcc1d1 to your computer and use it in GitHub Desktop.
Save vman/efdd1ec0ef164b4349801d8dbbbcc1d1 to your computer and use it in GitHub Desktop.
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