Last active
June 23, 2017 22:29
-
-
Save PandaWhoCodes/ae606eb0ef257a256b0bdcc22ee42062 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
def lambda_handler(event, context): | |
operation = event["context"]['http-method'] | |
if operation == "GET": | |
searchString = event["params"]["querystring"]["query"] | |
searchText = searchString.replace(" ", "+") | |
#formatted the search string to make sure it works with the giphy API |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment