Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bed366f

Browse filesBrowse files
author
Christopher MacGown
committed
Merge pull request ChristopherMacGown#8 from gimlithepirate/master
Adds a function that gets issues based on the auth'd user
2 parents a4dd15b + 2ce1dca commit bed366f
Copy full SHA for bed366f

File tree

Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed
Open diff view settings
Collapse file

‎github3/client.py‎

Copy file name to clipboardExpand all lines: github3/client.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import UserDict
3+
from urllib2 import HTTPError
34

45
from github3 import request
56

@@ -112,7 +113,11 @@ def user_emails(self, **kw):
112113
resp = self.client.get(url, **kw)
113114
return SimpleList.FromResponse(self.client, resp)
114115

115-
116+
def user_issues(self, **kw):
117+
"""Returns a PaginatedResourceList of the authenticated user's issues"""
118+
url = "https://api.github.com/issues"
119+
resp = self.client.get(url, **kw)
120+
return PaginatedResourceList.FromResponse(self.client, resp)
116121

117122
class ResourceList(object):
118123
def __init__(self, client, url, datalist=None):
Collapse file

‎setup.py‎

Copy file name to clipboardExpand all lines: setup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name = 'python-github3',
5-
version = '0.0.7',
5+
version = '0.0.9',
66
description = "An API interface that uses the new github v3 api",
77
packages = ['github3',],
88
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.