在linux中,我使用curl运行以下命令。
curl --tlsv1.2 --cert ~/aws-iot/certs/certificate.pem.crt --key ~/aws-iot/certs/private.pem.key --cacert ~/aws-iot/certs/root-CA.crt -X GET https://data.iot.us-east-1.amazonaws.com:8443/things/pi_3/shadow这个命令返回我想要的JSON文本。但是,我希望能够在Python3中运行上述命令。我不知道要使用什么库才能获得相同的JSON响应。
附注:我在AWS中将"data“替换为我的账号以获取JSON
https://stackoverflow.com/questions/38149259
复制相似问题