Skip to content

Instantly share code, notes, and snippets.

@dsiganos
Created April 11, 2018 13:28
Show Gist options
  • Save dsiganos/b53a9e3352e49ad37796c977e585cfe5 to your computer and use it in GitHub Desktop.
Save dsiganos/b53a9e3352e49ad37796c977e585cfe5 to your computer and use it in GitHub Desktop.
#!/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