I am creating API calls for ZOOM API in C#. If I call CreateMeeting using RestSharp HttpClient it generates me an error unsupported media type ErrorCode:300
Here is my code
var client = new RestClient($"https://api.zoom.us/v2/users/{userId}/meetings");
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", string.Format("Bearer {0}", tokenString));
var json = JsonConvert.SerializeObject(new CreateMeetingRequest
{
Topic= "Test Meeting",
Agenda = "Test Meeting",
Duration = 20,
Password = "Password",
Type = Common.MeetingType.InstantMeeting,
Start_Time = DateTime.Now.ToString()
});
request.AddParameter("application/json", json);
IRestResponse response = client.Execute(request);
It looks like you might have tried to attach the request body for your create meeting call, but nothing came through. Can you attach a code snippet or screen shot of the JSON you’re sending along with your create meeting request here?