Sha256: 36ea1a48c8233586d41b3b009df8583365b8b275385d76ecf7bf8af0d7a56650

Contents?: true

Size: 319 Bytes

Versions: 12

Compression:

Stored size: 319 Bytes

Contents

class WebhooksController < ApplicationController
  skip_before_action :verify_authenticity_token, only: [:callback]

  def callback
    webhooks = JSON.parse(request.raw_post)
    webhooks.each { |webhook| Services::Hubspot::Webhooks::Handle.new(webhook: webhook, request: request).call }
    render json: {}
  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/controllers/webhooks_controller.rb
hubspot-api-client-8.0.1 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-8.0.0 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-7.3.0 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-7.2.0 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-7.1.1 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-7.1.0 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-7.0.0 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-6.0.0 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-5.0.0 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-4.0.0 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb
hubspot-api-client-3.3.0 sample-apps/webhooks-contacts-app/app/controllers/webhooks_controller.rb