Skip to content

Commit

Permalink
Bump to 1.1.8 and Deprecate JWT Client (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleboe authored Apr 10, 2023
1 parent 5265ce8 commit 2ec6f21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
zoom_rb (1.1.7)
zoom_rb (1.1.8)
httparty (>= 0.13)
json (>= 1.8)
jwt
Expand Down
2 changes: 2 additions & 0 deletions lib/zoom/clients/jwt.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# frozen_string_literal: true
require 'jwt'
require 'logger'

module Zoom
class Client
class JWT < Zoom::Client

def initialize(config)
::Logger.new(STDOUT).warn('Zoom::Client::JWT is deprecated. Please use Zoom::Client::ServerToServerOAuth instead. See: https://developers.zoom.us/docs/internal-apps/jwt-faq/')
Zoom::Params.new(config).require(:api_key, :api_secret)
config.each { |k, v| instance_variable_set("@#{k}", v) }
self.class.default_timeout(@timeout || 20)
Expand Down
2 changes: 1 addition & 1 deletion lib/zoom/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Zoom
VERSION = '1.1.7'
VERSION = '1.1.8'
end

0 comments on commit 2ec6f21

Please sign in to comment.