Class: Zoom::Client

Direct Known Subclasses

JWT, OAuth

Defined Under Namespace

Classes: JWT, OAuth

Constant Summary

Constants included from Actions::Webinar

Actions::Webinar::RECURRENCE_KEYS, Actions::Webinar::SETTINGS_KEYS

Constants included from Actions::Recording

Actions::Recording::RECORDING_SETTINGS_KEYS

Instance Method Summary collapse

Methods included from Actions::IM::Chat

#chat_get, #chat_list, #get_chat_channels, #get_chat_user_channels

Methods included from Actions::Webinar

#past_webinar_list, #webinar_create, #webinar_delete, #webinar_get, #webinar_list, #webinar_panelist_list, #webinar_poll_get, #webinar_polls_list, #webinar_registrant_add, #webinar_registrant_get, #webinar_registrants_list, #webinar_registrants_status_update, #webinar_update

Methods included from Actions::User

#user_assistants_create, #user_assistants_delete, #user_assistants_delete_all, #user_assistants_list, #user_create, #user_delete, #user_email_check, #user_get, #user_list, #user_password_update, #user_permissions, #user_recordings_list, #user_schedulers_delete, #user_schedulers_delete_all, #user_schedulers_list, #user_settings_get, #user_settings_update, #user_token, #user_update, #user_vanity_name

Methods included from Actions::Token

#access_tokens, #data_compliance, #refresh_tokens, #revoke_tokens

Methods included from Actions::SipAudio

#sip_trunk_numbers_delete, #sip_trunks_delete, #sip_trunks_get, #sip_trunks_internal_callout_countries_add, #sip_trunks_internal_callout_country_delete, #sip_trunks_internal_callout_country_list, #sip_trunks_internal_numbers_add, #sip_trunks_internal_numbers_delete, #sip_trunks_internal_numbers_list, #sip_trunks_numbers_assign, #sip_trunks_numbers_list

Methods included from Actions::Roles

#roles_assign, #roles_create, #roles_get, #roles_list, #roles_members, #roles_unassign

Methods included from Actions::Report

#daily_report, #meeting_details_report, #meeting_participants_report, #webinar_participants_report

Methods included from Actions::Recording

#meeting_recording_file_delete, #meeting_recording_get, #meeting_recording_settings_get, #meeting_recording_settings_update, #recording_list

Methods included from Actions::Phone

#call_logs, #call_recordings, #phone_users_list

Methods included from Actions::Meeting

#livestream, #meeting_add_registrant, #meeting_create, #meeting_delete, #meeting_get, #meeting_invitation, #meeting_list, #meeting_registrant_questions, #meeting_update, #meeting_update_status, #past_meeting_details, #past_meeting_participants

Methods included from Actions::Groups

#groups_get, #groups_list

Methods included from Actions::Dashboard

#dashboard_crc, #dashboard_meeting_details, #dashboard_meeting_participants, #dashboard_meetings

Methods included from Actions::Billing

#billing_get, #billing_plans_list, #billing_plans_subscribe, #billing_plans_usage, #billing_update

Methods included from Actions::Account

#account_create, #account_delete, #account_get, #account_get_locked_settings, #account_list, #account_managed_domains, #account_options_update, #account_settings_get, #account_settings_update, #account_trusted_domains

Instance Method Details

#auth_tokenObject



48
49
50
# File 'lib/zoom/client.rb', line 48

def auth_token
  Base64.encode64("#{Zoom.configuration.api_key}:#{Zoom.configuration.api_secret}").delete("\n")
end

#headersObject



29
30
31
32
33
34
# File 'lib/zoom/client.rb', line 29

def headers
  {
    'Accept' => 'application/json',
    'Content-Type' => 'application/json',
  }
end

#oauth_request_headersObject



36
37
38
39
40
# File 'lib/zoom/client.rb', line 36

def oauth_request_headers
  {
    'Authorization' => "Basic #{auth_token}"
  }.merge(headers)
end

#request_headersObject



42
43
44
45
46
# File 'lib/zoom/client.rb', line 42

def request_headers
  {
    'Authorization' => "Bearer #{access_token}"
  }.merge(headers)
end