Skip to content

Instantly share code, notes, and snippets.

@afaqk9394
Created March 4, 2020 23:03
Show Gist options
  • Save afaqk9394/9d51512c440d9243997f66492e80c54c to your computer and use it in GitHub Desktop.
Save afaqk9394/9d51512c440d9243997f66492e80c54c to your computer and use it in GitHub Desktop.
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