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
posta 2 mesi fa403 visualizzazioni
1 Risposta
2
Risposta accettata

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
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande