Mercurial > public > tweet-analysis
view 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 source
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" }), }