Skip to content

Instantly share code, notes, and snippets.

@PandaWhoCodes
Last active June 23, 2017 22:29
Show Gist options
  • Save PandaWhoCodes/ae606eb0ef257a256b0bdcc22ee42062 to your computer and use it in GitHub Desktop.
Save PandaWhoCodes/ae606eb0ef257a256b0bdcc22ee42062 to your computer and use it in GitHub Desktop.
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