Created
March 4, 2020 23:03
-
-
Save afaqk9394/9d51512c440d9243997f66492e80c54c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
headers = { 'Authorization' : 'Token ' + token } | |
r = requests.get('https://address.of.opengear/api/v1/serialPorts/', headers=headers, verify=False) | |
j = json.loads(r.text) | |
print(json.dumps(j, indent=4)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment