Created
April 11, 2018 13:28
-
-
Save dsiganos/b53a9e3352e49ad37796c977e585cfe5 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python | |
import requests | |
import json | |
username = '' | |
password = '' | |
projectname = '' | |
url = 'https://api.github.com/repos/%s/%s/issues' % (username, projectname) | |
session = requests.session() | |
session.auth = (username, password) | |
response = session.get(url) | |
print json.dumps(response.json(), indent=4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment