Created
March 4, 2020 23:06
-
-
Save afaqk9394/5587947c6f10188a6e28609a478db7bd 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
import requests, json | |
data = { 'username' : 'root', 'password' : 'default' } | |
r = requests.post('https://address.of.opengear/api/v1/sessions/', data=json.dumps(data), verify=False) | |
token = json.loads(r.text)['session'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment