AuthenticatedUser.get_issues

This commit is contained in:
Vincent Jacques
2012-03-19 07:40:52 +01:00
parent 1d2b27824d
commit bd39726f7c
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ API `/gists/starred`
API `/issues`
=============
* GET: (TODO)
* GET: `AuthenticatedUser.get_issues`
API `/networks/:user/:repo/events`
==================================
+4
View File
@@ -119,6 +119,10 @@ Gists
* `create_gist( public, files, [description] )`: `Gist`
* `get_starred_gists()`: list of `Gist`
Issues
------
* `get_issues()`: list of `Issue`
Class `Authorization`
=====================
@@ -5,6 +5,7 @@ from NamedUser import *
from Organization import *
from Repository import *
from Gist import *
from Issue import *
def __getOrganizationEvents( user, org ):
return [
@@ -86,4 +87,8 @@ AuthenticatedUser = GithubObject(
url = "/gists",
),
MethodFromCallable( "get_starred_gists", Parameters( [], [] ), __getStaredGists, SimpleTypePolicy( "list of `Gist`" ) ),
ExternalListOfObjects( "issues", "issue", Issue,
ListGetable( Parameters( [], [] ) ),
url = "/issues",
),
)