Mercurial > public > tweet-analysis
diff src/handlers/sentiment.py @ 1:0277e7fc0f0a
first successful sam deploy
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 16 Sep 2021 09:38:07 +0200 |
parents | |
children | 5c36f51105c2 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/handlers/sentiment.py Thu Sep 16 09:38:07 2021 +0200 @@ -0,0 +1,22 @@ +import json + + +def get_tweet_sentiment(event, context): + """ + + :param event: dict, required + API Gateway Lambda Proxy Input Format + :param context: object, required + Lambda Context runtime methods and attributes + :return: dict + API Gateway Lambda Proxy Output Format + """ + + print('hello world') + + return { + "statusCode": 200, + "body": json.dumps({ + "message": "hello world" + }), + }