diff --git a/Github/http.py b/Github/http.py index ce18ecc..3aaad0b 100644 --- a/Github/http.py +++ b/Github/http.py @@ -17,7 +17,7 @@ import aiohttp from .exceptions import * from .exceptions import GistNotFound, RepositoryAlreadyExists -from .objects import APIObject, User +from .objects import APIObject, User, Gist, Repository, Organization from .urls import * __all__ = ( @@ -81,6 +81,7 @@ class Paginator: self.should_paginate = bool(self.response.headers.get('Link', False)) types: dict[str, APIObject] = { 'user': User, + 'gist' : Gist, } self.target_type = types[target_type] self.pages = {} diff --git a/Github/urls.py b/Github/urls.py index a778723..be0e1d8 100644 --- a/Github/urls.py +++ b/Github/urls.py @@ -32,6 +32,7 @@ REPO_ISSUE_URL = REPO_URL + '/issues/{2}' # a specific issue #== gist urls ==# GIST_URL = BASE_URL + '/gists/{0}' # specific gist +CREATE_GIST_URL = BASE_URL + '/gists' # create a gist CREATE_GIST_URL = BASE_URL + '/gists'