Sha256: 048facb24f961444b7596a5a3c668e6e78fb8e349bb2a789a3a960122f8e5636

Contents?: true

Size: 480 Bytes

Versions: 7

Compression:

Stored size: 480 Bytes

Contents

module Services
  module Trello
    module Authorization
      class Authorize
        def initialize(tokens:)
          @tokens = tokens
        end

        def call
          ::Trello.configure do |config|
            config.consumer_key = ENV['TRELLO_KEY']
            config.consumer_secret = ENV['TRELLO_SECRET']
            config.oauth_token = @tokens['token']
            config.oauth_token_secret = @tokens['secret']
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/trello-integration-app/app/lib/services/trello/authorization/authorize.rb
hubspot-api-client-8.0.1 sample-apps/trello-integration-app/app/lib/services/trello/authorization/authorize.rb
hubspot-api-client-8.0.0 sample-apps/trello-integration-app/app/lib/services/trello/authorization/authorize.rb
hubspot-api-client-7.3.0 sample-apps/trello-integration-app/app/lib/services/trello/authorization/authorize.rb
hubspot-api-client-7.2.0 sample-apps/trello-integration-app/app/lib/services/trello/authorization/authorize.rb
hubspot-api-client-7.1.1 sample-apps/trello-integration-app/app/lib/services/trello/authorization/authorize.rb
hubspot-api-client-7.1.0 sample-apps/trello-integration-app/app/lib/services/trello/authorization/authorize.rb