Last Updated: 7/4/2021 12:36:34 PM
You can download the reports by using GET /SMPI/service/report/api/files/download with the report file IDs. If multiple report files be specified, each file ID should be separated by comma.
limit = 100 page = 1 method = "GET" request_uri = "/SMPI/service/report/api/files/download?fids=%s" % report_file_ids res_status, res_data = cspi_conn.send_request(method, request_uri) print "Response data (page %s): \n%s" % (page, res_data) res_data = json.loads(res_data) print "%s" % res_data
If successful, the responded data will be the binary content of a zip file of the report files