# -*- coding: utf-8; -*-
import httplib2
import json
import sys
import codecs
import urllib
sys.stdout = codecs.getwriter('utf_8')(sys.stdout)
token='Put your private access token here'
reviewLabel = '5 - Develop (Review)'
encodedLabel = urllib.quote_plus(reviewLabel)
# list issues in kanban project
h = httplib2.Http(".cache")
url = "https://api.github.com/orgs/KiiCorp/issues?labels="+encodedLabel+"&filter=all"
resp, content = h.request(url, "GET",
headers={'authorization':'Bearer ' + token})
respBody = json.loads(content)
for iss in respBody:
print iss['title']
print iss['html_url']
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment