Created
May 14, 2019 06:49
-
-
Save marzdgzmn/b96ec27971e789da60a55e2ce48b5f29 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Podio.setup( | |
api_url: 'https://api.podio.com', | |
api_key: Rails.application.config.podio_client_id, | |
api_secret: Rails.application.config.podio_client_secret | |
) | |
$podio = Podio.client.authenticate_with_credentials( | |
Rails.application.config.podio_username, | |
Rails.application.config.podio_password | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PodioController < ApplicationController | |
skip_before_action :validate_param_type | |
private | |
def validate_param_type | |
Podio::Hook.validate(params['hook_id'], params['code']) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment