Sha256: 233714735c5e4430116d7e55cba3ce265a258d1e848d721c0d39d036286183e4

Contents?: true

Size: 559 Bytes

Versions: 12

Compression:

Stored size: 559 Bytes

Contents

module Services
  module Hubspot
    module Webhooks
      class ConfigureTargetUrl
        def initialize(app_id:, target_url:)
          @app_id = app_id
          @target_url = target_url
        end

        def call
          ::Hubspot::Webhooks::SettingsApi.new.configure(
            @app_id,
            settings_change_request(@target_url)
          )
        end

        private

        def settings_change_request(target_url)
          ::Hubspot::Webhooks::SettingsChangeRequest.new(target_url: target_url)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-8.0.1 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-8.0.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-7.3.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-7.2.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-7.1.1 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-7.1.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-7.0.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-6.0.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-5.0.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-4.0.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb
hubspot-api-client-3.3.0 sample-apps/webhooks-contacts-app/app/lib/services/hubspot/webhooks/configure_target_url.rb