Sha256: e79cdec22ba60b72e8136279cfbf41e80204fff2deaba93024a38393d47a3540

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

module Messenger
  module Bot
    class Space::StationController < ::MessengerBotController
      def validation
        if params["hub.verify_token"] === Messenger::Bot::Config.validation_token
          return render json: params["hub.challenge"]
        end
        render body: "Error, wrong validation token"
      end

      def receive
        Messenger::Bot::Receiver.share(params)
        render body: "ok"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
messenger-bot-0.1.6 lib/messenger/bot/station.rb
messenger-bot-0.1.5 lib/messenger/bot/station.rb
messenger-bot-0.1.4 lib/messenger/bot/station.rb