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
demandé il y a 2 mois402 vues
1 réponse
2
Réponse acceptée

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
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions