Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Created April 14, 2016 05:14
Show Gist options
  • Save kristianfreeman/6f9b035ec1991be6de047f6649ffcd9b to your computer and use it in GitHub Desktop.
Save kristianfreeman/6f9b035ec1991be6de047f6649ffcd9b to your computer and use it in GitHub Desktop.
def index(conn, %{“hub.verify_token” => verify_token, “hub.challenge” => challenge}) do
resp =
case verify_token do
“helloworld” -> challenge
_ -> “notok”
end
text conn, resp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment