Skip to content

Instantly share code, notes, and snippets.

@ssbarnea
Created March 8, 2019 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssbarnea/1d911cf012421546b7d55491f9a38293 to your computer and use it in GitHub Desktop.
Save ssbarnea/1d911cf012421546b7d55491f9a38293 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from requests import Session
from requests.auth import HTTPBasicAuth
s = Session()
auth = HTTPBasicAuth('ssbarnea', '...')
s.auth = auth
x = s.get("https://review.rdoproject.org:443/r/a/accounts/self")
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment