Chilkat Online Tools

autoit / Zoom API / Get settings

Back to Collection Items

; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.

$oHttp = ObjCreate("Chilkat.Http")
Local $bSuccess

$oQueryParams = ObjCreate("Chilkat.JsonObject")
$oQueryParams.UpdateString("option","meeting_security")
$oQueryParams.UpdateString("custom_query_fields","quis officia in reprehenderit")

; Adds the "Authorization: Bearer <access_token>" header.
$oHttp.AuthToken = "<access_token>"

Local $oResp = $oHttp.QuickRequestParams("GET","https://api.zoom.us/v2/accounts/:accountId/settings",$oQueryParams)
If ($oHttp.LastMethodSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf

$oSbResponseBody = ObjCreate("Chilkat.StringBuilder")
$oResp.GetBodySb($oSbResponseBody)

$oJResp = ObjCreate("Chilkat.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
$oJResp.EmitCompact = False

ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oJResp.Emit() & @CRLF)

Local $iRespStatusCode = $oResp.StatusCode
ConsoleWrite("Response Status Code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode >= 400) Then
    ConsoleWrite("Response Header:" & @CRLF)
    ConsoleWrite($oResp.Header & @CRLF)
    ConsoleWrite("Failed." & @CRLF)

    Exit
EndIf

; Sample JSON response:
; (Sample code for parsing the JSON response is shown below)

; {
;   "schedule_meeting": {
;     "host_video": "boolean",
;     "participant_video": "boolean",
;     "audio_type": "string",
;     "join_before_host": "boolean",
;     "use_pmi_for_scheduled_meetings": "boolean",
;     "use_pmi_for_instant_meetings": "boolean",
;     "enforce_login": "boolean",
;     "enforce_login_with_domains": "boolean",
;     "enforce_login_domains": "string",
;     "not_store_meeting_topic": "boolean",
;     "force_pmi_jbh_password": "boolean",
;     "require_password_for_scheduling_new_meetings": "boolean",
;     "require_password_for_scheduled_meetings": "boolean",
;     "require_password_for_instant_meetings": "boolean",
;     "require_password_for_pmi_meetings": "string"
;   },
;   "in_meeting": {
;     "e2e_encryption": "boolean",
;     "chat": "boolean",
;     "allow_participants_chat_with": 2,
;     "allow_users_save_chats": 2,
;     "private_chat": "boolean",
;     "auto_saving_chat": "boolean",
;     "entry_exit_chime": "string",
;     "record_play_own_voice": "boolean",
;     "feedback": "boolean",
;     "post_meeting_feedback": "boolean",
;     "co_host": "boolean",
;     "polling": "boolean",
;     "attendee_on_hold": "boolean",
;     "show_meeting_control_toolbar": "boolean",
;     "allow_show_zoom_windows": "boolean",
;     "annotation": "boolean",
;     "whiteboard": "boolean",
;     "webinar_question_answer": "boolean",
;     "anonymous_question_answer": "boolean",
;     "breakout_room": "boolean",
;     "breakout_room_schedule": true,
;     "closed_caption": "boolean",
;     "far_end_camera_control": "boolean",
;     "group_hd": "boolean",
;     "virtual_background": "boolean",
;     "watermark": "boolean",
;     "watermark_by_default": "boolean",
;     "audio_watermark_by_default": "boolean",
;     "alert_guest_join": "boolean",
;     "auto_answer": "boolean",
;     "p2p_connetion": "boolean",
;     "p2p_ports": "boolean",
;     "ports_range": "string",
;     "sending_default_email_invites": "boolean",
;     "use_html_format_email": "boolean",
;     "dscp_marking": "boolean",
;     "dscp_audio": "integer",
;     "dscp_video": "integer",
;     "stereo_audio": "boolean",
;     "original_audio": "boolean",
;     "screen_sharing": "boolean",
;     "remote_control": "boolean",
;     "attention_mode_focus_mode": true,
;     "allow_host_to_enable_focus_mode": false,
;     "show_a_join_from_your_browser_link": true,
;     "join_from_mobile": true,
;     "join_from_desktop": true,
;     "allow_live_streaming": true,
;     "live_streaming_facebook": true,
;     "workplace_by_facebook": true,
;     "live_streaming_youtube": true,
;     "custom_live_streaming_service": true,
;     "custom_service_instructions": "specific instructions",
;     "webinar_live_streaming": {
;       "enable": true,
;       "live_streaming_service": [
;         "facebook",
;         "workplace_by_facebook",
;         "youtube",
;         "custom_live_streaming_service"
;       ],
;       "custom_service_instructions": "specific instructions",
;       "live_streaming_reminder": true
;     },
;     "webinar_chat": {
;       "enable": true,
;       "allow_panelists_chat_with": 1,
;       "allow_attendees_chat_with": 1,
;       "default_attendees_chat_with": 1,
;       "allow_panelists_send_direct_message": true,
;       "allow_users_save_chats": 1,
;       "allow_auto_save_local_chat_file": true
;     },
;     "closed_captioning": {
;       "enable": true,
;       "third_party_captioning_service": false,
;       "auto_transcribing": true,
;       "view_full_transcript": true,
;       "save_caption": true
;     },
;     "slide_control": true,
;     "meeting_survey": true,
;     "webinar_polling": {
;       "enable": true,
;       "advanced_polls": true
;     },
;     "webinar_survey": true
;   },
;   "email_notification": {
;     "cloud_recording_available_reminder": "boolean",
;     "recording_available_reminder_schedulers": true,
;     "recording_available_reminder_alternative_hosts": true,
;     "jbh_reminder": "boolean",
;     "cancel_meeting_reminder": "boolean",
;     "low_host_count_reminder": "boolean",
;     "alternative_host_reminder": "boolean",
;     "schedule_for_reminder": "boolean"
;   },
;   "zoom_rooms": {
;     "upcoming_meeting_alert": "boolean",
;     "start_airplay_manually": "boolean",
;     "weekly_system_restart": "boolean",
;     "list_meetings_with_calendar": "boolean",
;     "zr_post_meeting_feedback": "boolean",
;     "ultrasonic": "boolean",
;     "force_private_meeting": "boolean",
;     "hide_host_information": "boolean",
;     "cmr_for_instant_meeting": "boolean",
;     "auto_start_stop_scheduled_meetings": "boolean"
;   },
;   "security": {
;     "admin_change_name_pic": "boolean",
;     "import_photos_from_devices": "boolean",
;     "hide_billing_info": "boolean"
;   },
;   "recording": {
;     "local_recording": "boolean",
;     "cloud_recording": "boolean",
;     "record_speaker_view": "boolean",
;     "record_gallery_view": "boolean",
;     "record_audio_file": "boolean",
;     "save_chat_text": "boolean",
;     "show_timestamp": "boolean",
;     "recording_audio_transcript": "boolean",
;     "auto_recording": "string",
;     "cloud_recording_download": "boolean",
;     "cloud_recording_download_host": "boolean",
;     "account_user_access_recording": "boolean",
;     "auto_delete_cmr": "boolean",
;     "auto_delete_cmr_days": "integer"
;   },
;   "telephony": {
;     "third_party_audio": "boolean",
;     "audio_conference_info": "string"
;   },
;   "tsp": {
;     "call_out": "boolean",
;     "call_out_countries": [
;       "string"
;     ],
;     "show_international_numbers_link": "boolean",
;     "display_toll_free_numbers": "boolean"
;   },
;   "integration": {
;     "google_calendar": "boolean",
;     "google_drive": "boolean",
;     "dropbox": "boolean",
;     "box": "boolean",
;     "microsoft_one_drive": "boolean",
;     "kubi": "boolean"
;   },
;   "feature": {
;     "meeting_capacity": "integer"
;   },
;   "other_options": {
;     "allow_auto_active_users": true,
;     "blur_snapshot": true,
;     "display_meetings_scheduled_for_others": false,
;     "use_cdn": "default",
;     "allow_users_contact_support_via_chat": true,
;     "meeting_qos_and_mos": 0,
;     "show_one_user_meeting_on_dashboard": true,
;     "allow_users_enter_and_share_pronouns": true
;   },
;   "audio_conferencing": {
;     "toll_free_and_fee_based_toll_call": {
;       "enable": true,
;       "numbers": [
;         {
;           "code": "1",
;           "country_code": "US",
;           "country_name": "United States",
;           "number": "+1 5550100",
;           "display_number": "+1 5550100(Atlanta)"
;         },
;         {
;           "code": "1",
;           "country_code": "US",
;           "country_name": "United States",
;           "number": "+1 5550101",
;           "display_number": "+1 5550101(SanJose)"
;         }
;       ],
;       "allow_webinar_attendees_dial": true
;     }
;   }
; }

; Sample code for parsing the JSON response...
; Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

Local $strVal
Local $sCode
Local $sCountry_code
Local $sCountry_name
Local $sV_number
Local $sDisplay_number

Local $sHost_video = $oJResp.StringOf("schedule_meeting.host_video")
Local $sParticipant_video = $oJResp.StringOf("schedule_meeting.participant_video")
Local $sAudio_type = $oJResp.StringOf("schedule_meeting.audio_type")
Local $sJoin_before_host = $oJResp.StringOf("schedule_meeting.join_before_host")
Local $sUse_pmi_for_scheduled_meetings = $oJResp.StringOf("schedule_meeting.use_pmi_for_scheduled_meetings")
Local $sUse_pmi_for_instant_meetings = $oJResp.StringOf("schedule_meeting.use_pmi_for_instant_meetings")
Local $sEnforce_login = $oJResp.StringOf("schedule_meeting.enforce_login")
Local $sEnforce_login_with_domains = $oJResp.StringOf("schedule_meeting.enforce_login_with_domains")
Local $sEnforce_login_domains = $oJResp.StringOf("schedule_meeting.enforce_login_domains")
Local $sNot_store_meeting_topic = $oJResp.StringOf("schedule_meeting.not_store_meeting_topic")
Local $sForce_pmi_jbh_password = $oJResp.StringOf("schedule_meeting.force_pmi_jbh_password")
Local $sRequire_password_for_scheduling_new_meetings = $oJResp.StringOf("schedule_meeting.require_password_for_scheduling_new_meetings")
Local $sRequire_password_for_scheduled_meetings = $oJResp.StringOf("schedule_meeting.require_password_for_scheduled_meetings")
Local $sRequire_password_for_instant_meetings = $oJResp.StringOf("schedule_meeting.require_password_for_instant_meetings")
Local $sRequire_password_for_pmi_meetings = $oJResp.StringOf("schedule_meeting.require_password_for_pmi_meetings")
Local $sE2e_encryption = $oJResp.StringOf("in_meeting.e2e_encryption")
Local $sChat = $oJResp.StringOf("in_meeting.chat")
Local $iAllow_participants_chat_with = $oJResp.IntOf("in_meeting.allow_participants_chat_with")
Local $iAllow_users_save_chats = $oJResp.IntOf("in_meeting.allow_users_save_chats")
Local $sPrivate_chat = $oJResp.StringOf("in_meeting.private_chat")
Local $sAuto_saving_chat = $oJResp.StringOf("in_meeting.auto_saving_chat")
Local $sEntry_exit_chime = $oJResp.StringOf("in_meeting.entry_exit_chime")
Local $sRecord_play_own_voice = $oJResp.StringOf("in_meeting.record_play_own_voice")
Local $sFeedback = $oJResp.StringOf("in_meeting.feedback")
Local $sPost_meeting_feedback = $oJResp.StringOf("in_meeting.post_meeting_feedback")
Local $sCo_host = $oJResp.StringOf("in_meeting.co_host")
Local $sPolling = $oJResp.StringOf("in_meeting.polling")
Local $sAttendee_on_hold = $oJResp.StringOf("in_meeting.attendee_on_hold")
Local $sShow_meeting_control_toolbar = $oJResp.StringOf("in_meeting.show_meeting_control_toolbar")
Local $sAllow_show_zoom_windows = $oJResp.StringOf("in_meeting.allow_show_zoom_windows")
Local $sAnnotation = $oJResp.StringOf("in_meeting.annotation")
Local $sWhiteboard = $oJResp.StringOf("in_meeting.whiteboard")
Local $sWebinar_question_answer = $oJResp.StringOf("in_meeting.webinar_question_answer")
Local $sAnonymous_question_answer = $oJResp.StringOf("in_meeting.anonymous_question_answer")
Local $sBreakout_room = $oJResp.StringOf("in_meeting.breakout_room")
Local $bBreakout_room_schedule = $oJResp.BoolOf("in_meeting.breakout_room_schedule")
Local $sClosed_caption = $oJResp.StringOf("in_meeting.closed_caption")
Local $sFar_end_camera_control = $oJResp.StringOf("in_meeting.far_end_camera_control")
Local $sGroup_hd = $oJResp.StringOf("in_meeting.group_hd")
Local $sVirtual_background = $oJResp.StringOf("in_meeting.virtual_background")
Local $sWatermark = $oJResp.StringOf("in_meeting.watermark")
Local $sWatermark_by_default = $oJResp.StringOf("in_meeting.watermark_by_default")
Local $sAudio_watermark_by_default = $oJResp.StringOf("in_meeting.audio_watermark_by_default")
Local $sAlert_guest_join = $oJResp.StringOf("in_meeting.alert_guest_join")
Local $sAuto_answer = $oJResp.StringOf("in_meeting.auto_answer")
Local $sP2p_connetion = $oJResp.StringOf("in_meeting.p2p_connetion")
Local $sP2p_ports = $oJResp.StringOf("in_meeting.p2p_ports")
Local $sPorts_range = $oJResp.StringOf("in_meeting.ports_range")
Local $sSending_default_email_invites = $oJResp.StringOf("in_meeting.sending_default_email_invites")
Local $sUse_html_format_email = $oJResp.StringOf("in_meeting.use_html_format_email")
Local $sDscp_marking = $oJResp.StringOf("in_meeting.dscp_marking")
Local $sDscp_audio = $oJResp.StringOf("in_meeting.dscp_audio")
Local $sDscp_video = $oJResp.StringOf("in_meeting.dscp_video")
Local $sStereo_audio = $oJResp.StringOf("in_meeting.stereo_audio")
Local $sOriginal_audio = $oJResp.StringOf("in_meeting.original_audio")
Local $sScreen_sharing = $oJResp.StringOf("in_meeting.screen_sharing")
Local $sRemote_control = $oJResp.StringOf("in_meeting.remote_control")
Local $bAttention_mode_focus_mode = $oJResp.BoolOf("in_meeting.attention_mode_focus_mode")
Local $bAllow_host_to_enable_focus_mode = $oJResp.BoolOf("in_meeting.allow_host_to_enable_focus_mode")
Local $bShow_a_join_from_your_browser_link = $oJResp.BoolOf("in_meeting.show_a_join_from_your_browser_link")
Local $bJoin_from_mobile = $oJResp.BoolOf("in_meeting.join_from_mobile")
Local $bJoin_from_desktop = $oJResp.BoolOf("in_meeting.join_from_desktop")
Local $bAllow_live_streaming = $oJResp.BoolOf("in_meeting.allow_live_streaming")
Local $bLive_streaming_facebook = $oJResp.BoolOf("in_meeting.live_streaming_facebook")
Local $bWorkplace_by_facebook = $oJResp.BoolOf("in_meeting.workplace_by_facebook")
Local $bLive_streaming_youtube = $oJResp.BoolOf("in_meeting.live_streaming_youtube")
Local $bCustom_live_streaming_service = $oJResp.BoolOf("in_meeting.custom_live_streaming_service")
Local $sCustom_service_instructions = $oJResp.StringOf("in_meeting.custom_service_instructions")
Local $bEnable = $oJResp.BoolOf("in_meeting.webinar_live_streaming.enable")
Local $sWebinar_live_streamingCustom_service_instructions = $oJResp.StringOf("in_meeting.webinar_live_streaming.custom_service_instructions")
Local $bLive_streaming_reminder = $oJResp.BoolOf("in_meeting.webinar_live_streaming.live_streaming_reminder")
Local $bWebinar_chatEnable = $oJResp.BoolOf("in_meeting.webinar_chat.enable")
Local $iAllow_panelists_chat_with = $oJResp.IntOf("in_meeting.webinar_chat.allow_panelists_chat_with")
Local $iAllow_attendees_chat_with = $oJResp.IntOf("in_meeting.webinar_chat.allow_attendees_chat_with")
Local $iDefault_attendees_chat_with = $oJResp.IntOf("in_meeting.webinar_chat.default_attendees_chat_with")
Local $bAllow_panelists_send_direct_message = $oJResp.BoolOf("in_meeting.webinar_chat.allow_panelists_send_direct_message")
Local $iWebinar_chatAllow_users_save_chats = $oJResp.IntOf("in_meeting.webinar_chat.allow_users_save_chats")
Local $bAllow_auto_save_local_chat_file = $oJResp.BoolOf("in_meeting.webinar_chat.allow_auto_save_local_chat_file")
Local $bClosed_captioningEnable = $oJResp.BoolOf("in_meeting.closed_captioning.enable")
Local $bThird_party_captioning_service = $oJResp.BoolOf("in_meeting.closed_captioning.third_party_captioning_service")
Local $bAuto_transcribing = $oJResp.BoolOf("in_meeting.closed_captioning.auto_transcribing")
Local $bView_full_transcript = $oJResp.BoolOf("in_meeting.closed_captioning.view_full_transcript")
Local $bSave_caption = $oJResp.BoolOf("in_meeting.closed_captioning.save_caption")
Local $bSlide_control = $oJResp.BoolOf("in_meeting.slide_control")
Local $bMeeting_survey = $oJResp.BoolOf("in_meeting.meeting_survey")
Local $bWebinar_pollingEnable = $oJResp.BoolOf("in_meeting.webinar_polling.enable")
Local $bAdvanced_polls = $oJResp.BoolOf("in_meeting.webinar_polling.advanced_polls")
Local $bWebinar_survey = $oJResp.BoolOf("in_meeting.webinar_survey")
Local $sCloud_recording_available_reminder = $oJResp.StringOf("email_notification.cloud_recording_available_reminder")
Local $bRecording_available_reminder_schedulers = $oJResp.BoolOf("email_notification.recording_available_reminder_schedulers")
Local $bRecording_available_reminder_alternative_hosts = $oJResp.BoolOf("email_notification.recording_available_reminder_alternative_hosts")
Local $sJbh_reminder = $oJResp.StringOf("email_notification.jbh_reminder")
Local $sCancel_meeting_reminder = $oJResp.StringOf("email_notification.cancel_meeting_reminder")
Local $sLow_host_count_reminder = $oJResp.StringOf("email_notification.low_host_count_reminder")
Local $sAlternative_host_reminder = $oJResp.StringOf("email_notification.alternative_host_reminder")
Local $sSchedule_for_reminder = $oJResp.StringOf("email_notification.schedule_for_reminder")
Local $sUpcoming_meeting_alert = $oJResp.StringOf("zoom_rooms.upcoming_meeting_alert")
Local $sStart_airplay_manually = $oJResp.StringOf("zoom_rooms.start_airplay_manually")
Local $sWeekly_system_restart = $oJResp.StringOf("zoom_rooms.weekly_system_restart")
Local $sList_meetings_with_calendar = $oJResp.StringOf("zoom_rooms.list_meetings_with_calendar")
Local $sZr_post_meeting_feedback = $oJResp.StringOf("zoom_rooms.zr_post_meeting_feedback")
Local $sUltrasonic = $oJResp.StringOf("zoom_rooms.ultrasonic")
Local $sForce_private_meeting = $oJResp.StringOf("zoom_rooms.force_private_meeting")
Local $sHide_host_information = $oJResp.StringOf("zoom_rooms.hide_host_information")
Local $sCmr_for_instant_meeting = $oJResp.StringOf("zoom_rooms.cmr_for_instant_meeting")
Local $sAuto_start_stop_scheduled_meetings = $oJResp.StringOf("zoom_rooms.auto_start_stop_scheduled_meetings")
Local $sAdmin_change_name_pic = $oJResp.StringOf("security.admin_change_name_pic")
Local $sImport_photos_from_devices = $oJResp.StringOf("security.import_photos_from_devices")
Local $sHide_billing_info = $oJResp.StringOf("security.hide_billing_info")
Local $sLocal_recording = $oJResp.StringOf("recording.local_recording")
Local $sCloud_recording = $oJResp.StringOf("recording.cloud_recording")
Local $sRecord_speaker_view = $oJResp.StringOf("recording.record_speaker_view")
Local $sRecord_gallery_view = $oJResp.StringOf("recording.record_gallery_view")
Local $sRecord_audio_file = $oJResp.StringOf("recording.record_audio_file")
Local $sSave_chat_text = $oJResp.StringOf("recording.save_chat_text")
Local $sShow_timestamp = $oJResp.StringOf("recording.show_timestamp")
Local $sRecording_audio_transcript = $oJResp.StringOf("recording.recording_audio_transcript")
Local $sAuto_recording = $oJResp.StringOf("recording.auto_recording")
Local $sCloud_recording_download = $oJResp.StringOf("recording.cloud_recording_download")
Local $sCloud_recording_download_host = $oJResp.StringOf("recording.cloud_recording_download_host")
Local $sAccount_user_access_recording = $oJResp.StringOf("recording.account_user_access_recording")
Local $sAuto_delete_cmr = $oJResp.StringOf("recording.auto_delete_cmr")
Local $sAuto_delete_cmr_days = $oJResp.StringOf("recording.auto_delete_cmr_days")
Local $sThird_party_audio = $oJResp.StringOf("telephony.third_party_audio")
Local $sAudio_conference_info = $oJResp.StringOf("telephony.audio_conference_info")
Local $sCall_out = $oJResp.StringOf("tsp.call_out")
Local $sShow_international_numbers_link = $oJResp.StringOf("tsp.show_international_numbers_link")
Local $sDisplay_toll_free_numbers = $oJResp.StringOf("tsp.display_toll_free_numbers")
Local $sGoogle_calendar = $oJResp.StringOf("integration.google_calendar")
Local $sGoogle_drive = $oJResp.StringOf("integration.google_drive")
Local $sDropbox = $oJResp.StringOf("integration.dropbox")
Local $sBox = $oJResp.StringOf("integration.box")
Local $sMicrosoft_one_drive = $oJResp.StringOf("integration.microsoft_one_drive")
Local $sKubi = $oJResp.StringOf("integration.kubi")
Local $sMeeting_capacity = $oJResp.StringOf("feature.meeting_capacity")
Local $bAllow_auto_active_users = $oJResp.BoolOf("other_options.allow_auto_active_users")
Local $bBlur_snapshot = $oJResp.BoolOf("other_options.blur_snapshot")
Local $bDisplay_meetings_scheduled_for_others = $oJResp.BoolOf("other_options.display_meetings_scheduled_for_others")
Local $sUse_cdn = $oJResp.StringOf("other_options.use_cdn")
Local $bAllow_users_contact_support_via_chat = $oJResp.BoolOf("other_options.allow_users_contact_support_via_chat")
Local $iMeeting_qos_and_mos = $oJResp.IntOf("other_options.meeting_qos_and_mos")
Local $bShow_one_user_meeting_on_dashboard = $oJResp.BoolOf("other_options.show_one_user_meeting_on_dashboard")
Local $bAllow_users_enter_and_share_pronouns = $oJResp.BoolOf("other_options.allow_users_enter_and_share_pronouns")
Local $bToll_free_and_fee_based_toll_callEnable = $oJResp.BoolOf("audio_conferencing.toll_free_and_fee_based_toll_call.enable")
Local $bAllow_webinar_attendees_dial = $oJResp.BoolOf("audio_conferencing.toll_free_and_fee_based_toll_call.allow_webinar_attendees_dial")
Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("in_meeting.webinar_live_streaming.live_streaming_service")
While $i < $iCount_i
    $oJResp.I = $i
    $strVal = $oJResp.StringOf("in_meeting.webinar_live_streaming.live_streaming_service[i]")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("tsp.call_out_countries")
While $i < $iCount_i
    $oJResp.I = $i
    $strVal = $oJResp.StringOf("tsp.call_out_countries[i]")
    $i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("audio_conferencing.toll_free_and_fee_based_toll_call.numbers")
While $i < $iCount_i
    $oJResp.I = $i
    $sCode = $oJResp.StringOf("audio_conferencing.toll_free_and_fee_based_toll_call.numbers[i].code")
    $sCountry_code = $oJResp.StringOf("audio_conferencing.toll_free_and_fee_based_toll_call.numbers[i].country_code")
    $sCountry_name = $oJResp.StringOf("audio_conferencing.toll_free_and_fee_based_toll_call.numbers[i].country_name")
    $sV_number = $oJResp.StringOf("audio_conferencing.toll_free_and_fee_based_toll_call.numbers[i].number")
    $sDisplay_number = $oJResp.StringOf("audio_conferencing.toll_free_and_fee_based_toll_call.numbers[i].display_number")
    $i = $i + 1
Wend

Curl Command

curl -G -d "option=meeting_security"
	-d "custom_query_fields=quis%20officia%20in%20reprehenderit"
	-H "Authorization: Bearer <access_token>"
https://api.zoom.us/v2/accounts/:accountId/settings

Postman Collection Item JSON

{
  "name": "Get settings",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{baseUrl}}/accounts/:accountId/settings?option=meeting_security&custom_query_fields=quis officia in reprehenderit",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "accounts",
        ":accountId",
        "settings"
      ],
      "query": [
        {
          "key": "option",
          "value": "meeting_security",
          "description": "Optional query parameters: \n* `meeting_authentication` — Use this query parameter to view the [meeting authentication settings](https://support.zoom.us/hc/en-us/articles/360037117472-Authentication-Profiles-for-Meetings-and-Webinars) applied to the user's account. \n* `recording_authentication` — Use this query parameter to view the [recording authentication settings](https://support.zoom.us/hc/en-us/articles/360037756671-Authentication-Profiles-for-Cloud-Recordings) applied to the user's account. \n* `security` — Use this query parameter to view the account's security settings. For example, password requirements for user login or two-factor authentication. \n* `meeting_security` — Use this query parameter to view the meeting security settings applied to the user's account."
        },
        {
          "key": "custom_query_fields",
          "value": "quis officia in reprehenderit",
          "description": "The name of the field by which to filter the response. For example, if you provide the `host_video` value for this field, you will get a response similar to the following:\n\n`{ \"schedule_meeting\": { \"host_video\": false    } }` \n\nTo use multiple values, comma-separate each value. For example: `host_video,participant_video`"
        }
      ],
      "variable": [
        {
          "key": "accountId",
          "value": "quis officia in reprehenderit",
          "description": "(Required) The account's ID."
        }
      ]
    },
    "description": "Use this API to get an account's settings information.\n\nTo get the settings of a master account, use `me` as the value for the `accountId` path parameter.\n\n**Scopes:** `account:read:admin`<br>**[Rate Limit Label](https://marketplace.zoom.us/docs/api-reference/rate-limits#rate-limits):** `Medium`\n\n**Prerequisites**: \n* The account must be a paid account"
  },
  "response": [
    {
      "name": "**HTTP Status Code:** `200`<br> Account settings returned.<br>**Error Code:** `200`<br>\nOnly available for Paid account.",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/accounts/:accountId/settings?option=meeting_security&custom_query_fields=quis officia in reprehenderit",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "accounts",
            ":accountId",
            "settings"
          ],
          "query": [
            {
              "key": "option",
              "value": "meeting_security"
            },
            {
              "key": "custom_query_fields",
              "value": "quis officia in reprehenderit"
            }
          ],
          "variable": [
            {
              "key": "accountId",
              "value": "quis officia in reprehenderit",
              "description": "(Required) The account's ID."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"schedule_meeting\": {\n  \"host_video\": \"boolean\",\n  \"participant_video\": \"boolean\",\n  \"audio_type\": \"string\",\n  \"join_before_host\": \"boolean\",\n  \"use_pmi_for_scheduled_meetings\": \"boolean\",\n  \"use_pmi_for_instant_meetings\": \"boolean\",\n  \"enforce_login\": \"boolean\",\n  \"enforce_login_with_domains\": \"boolean\",\n  \"enforce_login_domains\": \"string\",\n  \"not_store_meeting_topic\": \"boolean\",\n  \"force_pmi_jbh_password\": \"boolean\",\n  \"require_password_for_scheduling_new_meetings\": \"boolean\",\n  \"require_password_for_scheduled_meetings\": \"boolean\",\n  \"require_password_for_instant_meetings\": \"boolean\",\n  \"require_password_for_pmi_meetings\": \"string\"\n },\n \"in_meeting\": {\n  \"e2e_encryption\": \"boolean\",\n  \"chat\": \"boolean\",\n  \"allow_participants_chat_with\": 2,\n  \"allow_users_save_chats\": 2,\n  \"private_chat\": \"boolean\",\n  \"auto_saving_chat\": \"boolean\",\n  \"entry_exit_chime\": \"string\",\n  \"record_play_own_voice\": \"boolean\",\n  \"feedback\": \"boolean\",\n  \"post_meeting_feedback\": \"boolean\",\n  \"co_host\": \"boolean\",\n  \"polling\": \"boolean\",\n  \"attendee_on_hold\": \"boolean\",\n  \"show_meeting_control_toolbar\": \"boolean\",\n  \"allow_show_zoom_windows\": \"boolean\",\n  \"annotation\": \"boolean\",\n  \"whiteboard\": \"boolean\",\n  \"webinar_question_answer\": \"boolean\",\n  \"anonymous_question_answer\": \"boolean\",\n  \"breakout_room\": \"boolean\",\n  \"breakout_room_schedule\": true,\n  \"closed_caption\": \"boolean\",\n  \"far_end_camera_control\": \"boolean\",\n  \"group_hd\": \"boolean\",\n  \"virtual_background\": \"boolean\",\n  \"watermark\": \"boolean\",\n  \"watermark_by_default\": \"boolean\",\n  \"audio_watermark_by_default\": \"boolean\",\n  \"alert_guest_join\": \"boolean\",\n  \"auto_answer\": \"boolean\",\n  \"p2p_connetion\": \"boolean\",\n  \"p2p_ports\": \"boolean\",\n  \"ports_range\": \"string\",\n  \"sending_default_email_invites\": \"boolean\",\n  \"use_html_format_email\": \"boolean\",\n  \"dscp_marking\": \"boolean\",\n  \"dscp_audio\": \"integer\",\n  \"dscp_video\": \"integer\",\n  \"stereo_audio\": \"boolean\",\n  \"original_audio\": \"boolean\",\n  \"screen_sharing\": \"boolean\",\n  \"remote_control\": \"boolean\",\n  \"attention_mode_focus_mode\": true,\n  \"allow_host_to_enable_focus_mode\": false,\n  \"show_a_join_from_your_browser_link\": true,\n  \"join_from_mobile\": true,\n  \"join_from_desktop\": true,\n  \"allow_live_streaming\": true,\n  \"live_streaming_facebook\": true,\n  \"workplace_by_facebook\": true,\n  \"live_streaming_youtube\": true,\n  \"custom_live_streaming_service\": true,\n  \"custom_service_instructions\": \"specific instructions\",\n  \"webinar_live_streaming\": {\n   \"enable\": true,\n   \"live_streaming_service\": [\n    \"facebook\",\n    \"workplace_by_facebook\",\n    \"youtube\",\n    \"custom_live_streaming_service\"\n   ],\n   \"custom_service_instructions\": \"specific instructions\",\n   \"live_streaming_reminder\": true\n  },\n  \"webinar_chat\": {\n   \"enable\": true,\n   \"allow_panelists_chat_with\": 1,\n   \"allow_attendees_chat_with\": 1,\n   \"default_attendees_chat_with\": 1,\n   \"allow_panelists_send_direct_message\": true,\n   \"allow_users_save_chats\": 1,\n   \"allow_auto_save_local_chat_file\": true\n  },\n  \"closed_captioning\": {\n   \"enable\": true,\n   \"third_party_captioning_service\": false,\n   \"auto_transcribing\": true,\n   \"view_full_transcript\": true,\n   \"save_caption\": true\n  },\n  \"slide_control\": true,\n  \"meeting_survey\": true,\n  \"webinar_polling\": {\n   \"enable\": true,\n   \"advanced_polls\": true\n  },\n  \"webinar_survey\": true\n },\n \"email_notification\": {\n  \"cloud_recording_available_reminder\": \"boolean\",\n  \"recording_available_reminder_schedulers\": true,\n  \"recording_available_reminder_alternative_hosts\": true,\n  \"jbh_reminder\": \"boolean\",\n  \"cancel_meeting_reminder\": \"boolean\",\n  \"low_host_count_reminder\": \"boolean\",\n  \"alternative_host_reminder\": \"boolean\",\n  \"schedule_for_reminder\": \"boolean\"\n },\n \"zoom_rooms\": {\n  \"upcoming_meeting_alert\": \"boolean\",\n  \"start_airplay_manually\": \"boolean\",\n  \"weekly_system_restart\": \"boolean\",\n  \"list_meetings_with_calendar\": \"boolean\",\n  \"zr_post_meeting_feedback\": \"boolean\",\n  \"ultrasonic\": \"boolean\",\n  \"force_private_meeting\": \"boolean\",\n  \"hide_host_information\": \"boolean\",\n  \"cmr_for_instant_meeting\": \"boolean\",\n  \"auto_start_stop_scheduled_meetings\": \"boolean\"\n },\n \"security\": {\n  \"admin_change_name_pic\": \"boolean\",\n  \"import_photos_from_devices\": \"boolean\",\n  \"hide_billing_info\": \"boolean\"\n },\n \"recording\": {\n  \"local_recording\": \"boolean\",\n  \"cloud_recording\": \"boolean\",\n  \"record_speaker_view\": \"boolean\",\n  \"record_gallery_view\": \"boolean\",\n  \"record_audio_file\": \"boolean\",\n  \"save_chat_text\": \"boolean\",\n  \"show_timestamp\": \"boolean\",\n  \"recording_audio_transcript\": \"boolean\",\n  \"auto_recording\": \"string\",\n  \"cloud_recording_download\": \"boolean\",\n  \"cloud_recording_download_host\": \"boolean\",\n  \"account_user_access_recording\": \"boolean\",\n  \"auto_delete_cmr\": \"boolean\",\n  \"auto_delete_cmr_days\": \"integer\"\n },\n \"telephony\": {\n  \"third_party_audio\": \"boolean\",\n  \"audio_conference_info\": \"string\"\n },\n \"tsp\": {\n  \"call_out\": \"boolean\",\n  \"call_out_countries\": [\n   \"string\"\n  ],\n  \"show_international_numbers_link\": \"boolean\",\n  \"display_toll_free_numbers\": \"boolean\"\n },\n \"integration\": {\n  \"google_calendar\": \"boolean\",\n  \"google_drive\": \"boolean\",\n  \"dropbox\": \"boolean\",\n  \"box\": \"boolean\",\n  \"microsoft_one_drive\": \"boolean\",\n  \"kubi\": \"boolean\"\n },\n \"feature\": {\n  \"meeting_capacity\": \"integer\"\n },\n \"other_options\": {\n  \"allow_auto_active_users\": true,\n  \"blur_snapshot\": true,\n  \"display_meetings_scheduled_for_others\": false,\n  \"use_cdn\": \"default\",\n  \"allow_users_contact_support_via_chat\": true,\n  \"meeting_qos_and_mos\": 0,\n  \"show_one_user_meeting_on_dashboard\": true,\n  \"allow_users_enter_and_share_pronouns\": true\n },\n \"audio_conferencing\": {\n  \"toll_free_and_fee_based_toll_call\": {\n   \"enable\": true,\n   \"numbers\": [\n    {\n     \"code\": \"1\",\n     \"country_code\": \"US\",\n     \"country_name\": \"United States\",\n     \"number\": \"+1 5550100\",\n     \"display_number\": \"+1 5550100(Atlanta)\"\n    },\n    {\n     \"code\": \"1\",\n     \"country_code\": \"US\",\n     \"country_name\": \"United States\",\n     \"number\": \"+1 5550101\",\n     \"display_number\": \"+1 5550101(SanJose)\"\n    }\n   ],\n   \"allow_webinar_attendees_dial\": true\n  }\n }\n}"
    },
    {
      "name": "**HTTP Status Code:** `404`<br>\n**Error Code:** `2001`<br>\nAccount does not exist: $subAccountId.",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: oauth2",
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/accounts/:accountId/settings?option=meeting_security&custom_query_fields=quis officia in reprehenderit",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "accounts",
            ":accountId",
            "settings"
          ],
          "query": [
            {
              "key": "option",
              "value": "meeting_security"
            },
            {
              "key": "custom_query_fields",
              "value": "quis officia in reprehenderit"
            }
          ],
          "variable": [
            {
              "key": "accountId",
              "value": "quis officia in reprehenderit",
              "description": "(Required) The account's ID."
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}