Hi,
I create a meeting using api and enabled survey in settings. But I cannot see the meeting survey at ending of the meeting. Can you help me resolve it?
Can someone help me with this?
@chunsiong.zoom can you please help me out?
Hi,
I create a meeting using api and enabled survey in settings. But I cannot see the meeting survey at ending of the meeting. Can you help me resolve it?
Can someone help me with this?
@chunsiong.zoom can you please help me out?
When I create a meeting through zoom ui, I can see the survey at the end of the meeting.
Hi @thendral.d can you please share how you creating the meeting via API? What was your full request/response?
**Here is my request**
var authHeader = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{clientId}:{clientSecret}"));
// Initialize HttpClient
using var client = new HttpClient();
oauthUrl = oauthUrl + accountId;
// Create request message
var request = new HttpRequestMessage(HttpMethod.Post, oauthUrl);
request.Headers.Add("Authorization", $"Basic {authHeader}");
// Send request and get response
var response = await client.SendAsync(request);
// Check if the request was successful (status code 200)
if (response.IsSuccessStatusCode)
{
// Parse the JSON response to get the access token
var jsonResponse = await response.Content.ReadAsStringAsync();
accessToken = JsonDocument.Parse(jsonResponse).RootElement.GetProperty("access_token").GetString();
// Meeting data
var meeting_data = new JObject
{
{ "topic", meetingRequest.Topic },
{ "type", 2 },
{ "start_time", meetingRequest.StartTime },
{ "duration", meetingDuration },
{ "password" ,"" },
{" agenda", meetingRequest.Topic },
{ "pre_schedule" ,false },
{ "timezone" ,meetingTimeZone },
{ "default_password", true },
{
"settings", new JObject
{ { "survey_url", "https://s.zoom.us/m/bPFbkCNPA" }
}},
};
// Headers for the request
var headers = new
{
Authorization = $"Bearer {accessToken}",
Content_Type = "application/json",
Accept = "application/json"
// Send POST request to create meeting
//var content = new StringContent(meeting_data.ToString(), Encoding.UTF8, "application/json");
using var meetingClient = new HttpClient();
using var mRequest = new HttpRequestMessage(HttpMethod.Post, apiUrl);
mRequest.Content = new StringContent(meeting_data.ToString(), Encoding.UTF8, "application/json");
foreach (var header in headers.GetType().GetProperties())
{
mRequest.Headers.Add(header.Name, header.GetValue(headers).ToString());
}
var mResponse = await client.SendAsync(mRequest);
// Return response
try
{
var responseText = await mResponse.Content.ReadAsStringAsync();
var jObject = JObject.Parse(responseText);
zmResponse.MeetingNumber = (string)jObject["id"];
zmResponse.Start_Url = (string)jObject["start_url"];
zmResponse.End_Url = (string)jObject["join_url"];
zmResponse.Status = "Success";
var zoom = new DTO.Zoom.Zoom()
{
CreatedBy = "",
ModifiedBy = "",
SessionId = meetingRequest.SessionId,
StartUrl = zmResponse.Start_Url,
JoinUrl = zmResponse.End_Url,
MeetingNumber = zmResponse.MeetingNumber,
};
await _iCoreFactory.IZoomService.Add(zoom);
return zmResponse;
}
catch(Exception ex)
{
}
return zmResponse;
}
else
{
zmResponse.Status = "Failed";
zmResponse.Message = response.StatusCode.ToString();
}
Here is my response
{“uuid”:“iWfFfUZ4SxGmaBWaeSpAPQ==”,“id”:,“host_id”:“”,“host_email”:“”,“topic”:“Zoom Meeting”,“type”:2,“status”:“waiting”,“start_time”:“2024-12-19T04:19:48Z”,“duration”:60,“timezone”:“America/Chicago”,“created_at”:“2024-12-19T04:19:48Z”,“start_url”:“https://us04web.zoom.us/s/75472398878?zak=eyJ0eXAiOiJKV1QiLCJzdiI6IjAwMDAwMSIsInptX3NrbSI6InptX28ybSIsImFsZyI6IkhTMjU2In0.eyJpc3MiOiJ3ZWIiLCJjbHQiOjAsIm1udW0iOiI3NTQ3MjM5ODg3OCIsImF1ZCI6ImNsaWVudHNtIiwidWlkIjoiMFN6YVNyMHFRdWlPdVZvdXRjNWRPdyIsInppZCI6ImM5ZjA3MzE2Mjk0NTQ0YjJhNTk1NWJhZWRhN2IzNWFhIiwic2siOiIwIiwic3R5IjoxMDAsIndjZCI6InVzMDQiLCJleHAiOjE3MzQ1ODkxODksImlhdCI6MTczNDU4MTk4OSwiYWlkIjoiX1BRZks5QW5Sc3VhXzJRNW8zemp6QSIsImNpZCI6IiJ9.cwSXm5L8ggwoam_FuGVz9pXwMuw5ONBEsQEpbU6okNY",“join_url”:“https://us04web.zoom.us/j/75472398878?pwd=”,“password”:“”,“h323_password”:“”,“pstn_password”:“”,“encrypted_password”:“”,“settings”:{“host_video”:false,“participant_video”:false,“cn_meeting”:false,“in_meeting”:false,“join_before_host”:false,“jbh_time”:0,“mute_upon_entry”:false,“watermark”:false,“use_pmi”:false,“approval_type”:2,“audio”:“voip”,“auto_recording”:“none”,“enforce_login”:false,“enforce_login_domains”:“”,“alternative_hosts”:“”,“alternative_host_update_polls”:false,“close_registration”:false,“show_share_button”:false,“allow_multiple_devices”:false,“registrants_confirmation_email”:true,“waiting_room”:false,“request_permission_to_unmute_participants”:false,“registrants_email_notification”:true,“meeting_authentication”:false,“encryption_type”:“enhanced_encryption”,“approved_or_denied_countries_or_regions”:{“enable”:false},“breakout_room”:{“enable”:false},“internal_meeting”:false,“continuous_meeting_chat”:{“enable”:true,“auto_add_invited_external_users”:false,“auto_add_meeting_participants”:false,“channel_id”:“web_sch_1956792f5d5b402fb7715169e2d010a6”},“participant_focused_meeting”:false,“push_change_to_calendar”:false,“resources”:[],“alternative_hosts_email_notification”:true,“show_join_info”:false,“device_testing”:false,“focus_mode”:false,“meeting_invitees”:[],“private_meeting”:false,“email_notification”:true,“host_save_video_order”:false,“sign_language_interpretation”:{“enable”:false},“email_in_attendee_report”:false},“supportGoLive”:false,“creation_source”:“open_api”,"pre_schedule”:false}
@gianni.zoom Please help me resolve the issue
Can someone help me with the issue? I need to get it fixed asap.
Hi @thendral.d , currently the API endpoint for create a meeting does not allow you to create a survey or custom questions as you may see from the documentation request schema,
Please create it for a scheduled meeting via the web portal. You can use the API to GET, UPDATE, and DELETE a survey though: