comparison 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
comparison
equal deleted inserted replaced
0:cea9500dca25 1:0277e7fc0f0a
1 import json
2
3
4 def get_tweet_sentiment(event, context):
5 """
6
7 :param event: dict, required
8 API Gateway Lambda Proxy Input Format
9 :param context: object, required
10 Lambda Context runtime methods and attributes
11 :return: dict
12 API Gateway Lambda Proxy Output Format
13 """
14
15 print('hello world')
16
17 return {
18 "statusCode": 200,
19 "body": json.dumps({
20 "message": "hello world"
21 }),
22 }