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
gefragt vor 2 Monaten404 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen