|
@@ -155,7 +155,7 @@ class SnapshotView(View):
|
|
|
"endpoint": {
|
|
|
"scope": {
|
|
|
"type": "BearerToken",
|
|
|
- "token": "OAuth2.0 bearer token"
|
|
|
+ "token": access_token
|
|
|
},
|
|
|
"endpointId": uid
|
|
|
},
|
|
@@ -173,7 +173,7 @@ class SnapshotView(View):
|
|
|
|
|
|
LOGGER.info('快照异步事件请求: url:{},data:{}'.format(api_uri, payload_json))
|
|
|
response = requests.post(api_uri, json=payload_json, headers=headers)
|
|
|
- LOGGER.info('快照异步事件请求响应: {}'.format(response))
|
|
|
+ LOGGER.info('快照异步事件请求响应: {}'.format(response.json()))
|
|
|
|
|
|
return JsonResponse({'res': 'success'})
|
|
|
except Exception as e:
|