Mercurial > public > tweet-analysis
diff src/handlers/sentiment.py @ 4:cfd876570008
attach inline policy to function to access screts
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 16 Sep 2021 18:03:26 +0200 |
parents | 5c36f51105c2 |
children | db2ce7097ff3 |
line wrap: on
line diff
--- a/src/handlers/sentiment.py Thu Sep 16 16:51:59 2021 +0200 +++ b/src/handlers/sentiment.py Thu Sep 16 18:03:26 2021 +0200 @@ -20,12 +20,12 @@ bearer_token = twitter_key['BEARER'] twitter_header = {"Authorization": "Bearer {}".format(bearer_token)} # Auth header twitter_response = requests.request("GET", twitter_url, headers=twitter_header) - print(twitter_response.json()) return { "statusCode": 200, "body": json.dumps({ "message": "hello world", + "tweets": twitter_response.json() }), }