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
已提问 2 个月前401 查看次数
1 回答
2
已接受的回答

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
已回答 2 个月前
profile picture
专家
已审核 2 个月前
profile picture
专家
已审核 2 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则