Python 获得<;回应202>;作为此代码的输出,无法获取json
代码片段来自此网站,您可以将其用作参考Python 获得<;回应202>;作为此代码的输出,无法获取json,python,python-3.x,azure,python-requests,http-post,Python,Python 3.x,Azure,Python Requests,Http Post,代码片段来自此网站,您可以将其用作参考 您能详细描述一下您的问题吗?问题是什么?202其可能会更正postPloadRangeResponse的状态代码。json()给出错误“json.decoder.JSONDecodeError:期望值:第1行第1列” rangeData = { "type": "FeatureCollection", "features": [ { "type":
您能详细描述一下您的问题吗?问题是什么?202其可能会更正postPloadRangeResponse的状态代码。json()给出错误“json.decoder.JSONDecodeError:期望值:第1行第1列”
rangeData = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
polyBounds
]
}
}
]
}
# Upload the range data to Azure Maps Data service.
uploadRangeResponse = requests.post("https://us.atlas.microsoft.com/mapData?subscription-key={}&api-version=2.0&dataFormat=geojson".format(subscriptionKey), json = rangeData)