Sha256: 31fae02d7cfcce964bcd11840673345982101468f87ed2983bc955bd0ad91551

Contents?: true

Size: 303 Bytes

Versions: 16

Compression:

Stored size: 303 Bytes

Contents

module CanvasOauth
  class CanvasApiExtensions
    def self.build(canvas_url, user_id, tool_consumer_instance_guid)
      token = CanvasOauth::Authorization.fetch_token(user_id, tool_consumer_instance_guid)
      CanvasApi.new(canvas_url, token, CanvasConfig.key, CanvasConfig.secret)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
canvas_oauth_engine-2.4.0 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-2.3.0 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-2.2.0 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-2.1.3 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-2.1.2 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-2.1.1 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-2.1.0 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-2.0.0 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-1.1.2 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-1.1.1 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-1.1.0 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-1.0.4 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-1.0.3 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-1.0.2 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-1.0.1 lib/canvas_oauth/canvas_api_extensions.rb
canvas_oauth_engine-1.0.0 lib/canvas_oauth/canvas_api_extensions.rb