Created
November 10, 2022 18:08
-
-
Save brucevanhorn2/2c76975ddba92751caf916d4374ca1ec to your computer and use it in GitHub Desktop.
VSI 5 Enterprise Summary Export (Python 3 Version)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http.client | |
import json | |
conn = http.client.HTTPSConnection("vsi5.visualstorageintelligence.com") | |
payload = json.dumps({ | |
"export_format": "json", | |
"request_date": "10-31-2022", | |
"request_user": "your email here", | |
"request_password": "your password here" | |
}) | |
headers = { | |
'Content-Type': 'application/json' | |
} | |
conn.request("POST", "/api/export/v1/enterprise_summary", payload, headers) | |
res = conn.getresponse() | |
data = res.read() | |
print(data.decode("utf-8")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can also specify csv as the export_format