Description
I am attempting to register an attendee in a meeting (Pro account) using GoogleScript and the endpoint is returning HTTP 200 but a blank body with the registration not being added (I see this from viewing the list of registrations in the zoom web portal)
POST /v2/users/meetings/${meetingId}/registrants`
I am successfully using JWT to pull meeting details via
GET /v2/meetings/${meetingId}
or retrieve the manually registered attendees via
GET /v2/meetings/${meetingId}/registrants
so I believe the JWT authentication is not the issue
Any advice would be appreciated.
Error
The error is that the JSON body is not returned and the registrant is not created even though the HTTP return code is 200
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT
Which Endpoint/s?
/v2/users/meetings/${meetingId}/registrants
How To Reproduce (If applicable)
- Function in Google Script that is calling the endpoint
function createMeetingRegistrant () {
const meetingId = ‘a removed but real ID’;
var Options = {
email: ’ a removed but valid email address’,
first_name: ‘Mike’,
last_name: ‘Brown’,
};
var requestt;
requestt = UrlFetchApp.fetch(
https://api.zoom.us/v2/users/meetings/${meetingId}/registrants
,
{
method: ‘POST’,
contentType: ‘application/json’,
headers: { Authorization:Bearer ${getZoomAccessToken()}
},
payload: JSON.stringify(Options),
}
);
Logger.log(requestt.getResponseCode() );
Logger.log(requestt.getHeaders());
Logger.log(requestt.getContent());
Logger.log(requestt.getContentText());
…
==== - The returned logged output:
3:10:18 PM Notice Execution started
3:10:18 PM Info 200.0
3:10:18 PM Info| {Cache-Control=no-cache, no-store, must-revalidate, no-transform, Expires=Thu, 01 Jan 1970 00:00:00 GMT, Set-Cookie=cred=; Path=/; Secure; HttpOnly, Content-Length=0, Pragma=no-cache, Referrer-Policy=strict-origin-when-cross-origin, Connection=keep-alive, x-zm-trackingid=v=2.0;clid=us02;rid=WEB_, X-XSS-Protection=1; mode=block, Strict-Transport-Security=max-age=31536000; includeSubDomains, Date=Wed, 23 Jun 2021 14:10:18 GMT, X-Content-Type-Options=nosniff}
3:10:18 PM Info| ← this is the blank body
3:10:18 PM Info|
Screenshots (If applicable)
N/A
Additional context
This seems to be the same issue as reported in this Topic post Create Meeting v2 API - add attendees / participants - #12 by tmswartz12
Unfortunately, the poster said they found the resolution but did not enter it into the thread
I have a paid account and the settings for the meeting I am trying to add the registrant into is below with some elements removed such as ID’s and passwords:
{join_url=https://us02web.zoom.us/j/ registration_url=https://us02web.zoom.us/meeting/register/,
host_email=,
topic=Integration testing call,
encrypted_password=,
timezone=Europe/London,
status=waiting,
duration=60.0,
uuid=,
settings={alternative_hosts_email_notification=true, approved_or_denied_countries_or_regions={enable=false}, contact_name=, encryption_type=enhanced_encryption, global_dial_in_countries=[US], registrants_confirmation_email=true, watermark=false, alternative_hosts=, global_dial_in_numbers=[{country_name=US, number=+1 3462487799, type=toll, city=Houston, country=US}, {type=toll, number=+1 6699006833, country_name=US, city=San Jose, country=US}, {type=toll, country_name=US, number=+1 9294362866, city=New York, country=US}, {type=toll, city=Tacoma, country_name=US, country=US, number=+1 2532158782}, {number=+1 3017158592, country=US, country_name=US, type=toll, city=Washington DC}, {city=Chicago, type=toll, number=+1 3126266799, country=US, country_name=US}], approval_type=0.0, close_registration=true, use_pmi=false, auto_recording=none, jbh_time=0.0, show_share_button=true, registrants_email_notification=true, contact_email=, device_testing=false, host_video=true, mute_upon_entry=false,
waiting_room=true, breakout_room={enable=false}, registration_type=1.0, allow_multiple_devices=true, meeting_authentication=false, enforce_login_domains=, join_before_host=false, participant_video=true, enforce_login=false, request_permission_to_unmute_participants=false, in_meeting=false, cn_meeting=false, audio=both},
start_time=2021-06-28T14:00:00Z, created_at=2021-06-15T16:01:45Z, start_url=https://us02web.zoom.us/s/, agenda=This is the description for the integration call, host_id=, pstn_password=, h323_password=,
type=2.0, password=, assistant_id=}