Created
April 7, 2015 02:39
-
-
Save ardeearam/3fd500395bcd6232da8c to your computer and use it in GitHub Desktop.
This file contains 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
def sns | |
logger.debug request.raw_post | |
request_json = JSON.parse(request.raw_post, {symbolize_names: true}) | |
subscribe_url = request_json[:SubscribeURL] | |
logger.debug subscribe_url | |
#Fire up your favorite REST or CURL client, and visit subscribe_url | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment