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

extract_path_keys, make_request, parse_path

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