External Rest api call in python with lambda function

0

How to make external Rest api call in python with lambda function (to send the json result in a file in S) ? Does anyone find and example to do it the best way. If possible without any unavailable import (import requests seems not available anymore). Thank you

Remiby
asked a month ago320 views
1 Answer
2
Accepted Answer

Hi , If you do not want to use requests as a lambda layer you can use the standard library urllib.request urllib See the examples here this is another post that might be useful .

You can specify the HTTP method parameter as seen here HTH

AWS
jay-aws
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions