mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-07-24 06:57:42 +00:00
Merge branch 'main' of https://github.com/VarMonke/Github-Api-Wrapper
This commit is contained in:
commit
56760c2752
2 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,7 @@ import aiohttp
|
||||||
|
|
||||||
from .exceptions import *
|
from .exceptions import *
|
||||||
from .exceptions import GistNotFound, RepositoryAlreadyExists
|
from .exceptions import GistNotFound, RepositoryAlreadyExists
|
||||||
from .objects import APIObject, User
|
from .objects import APIObject, User, Gist, Repository, Organization
|
||||||
from .urls import *
|
from .urls import *
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
@ -81,6 +81,7 @@ class Paginator:
|
||||||
self.should_paginate = bool(self.response.headers.get('Link', False))
|
self.should_paginate = bool(self.response.headers.get('Link', False))
|
||||||
types: dict[str, APIObject] = {
|
types: dict[str, APIObject] = {
|
||||||
'user': User,
|
'user': User,
|
||||||
|
'gist' : Gist,
|
||||||
}
|
}
|
||||||
self.target_type = types[target_type]
|
self.target_type = types[target_type]
|
||||||
self.pages = {}
|
self.pages = {}
|
||||||
|
|
|
@ -32,6 +32,7 @@ REPO_ISSUE_URL = REPO_URL + '/issues/{2}' # a specific issue
|
||||||
|
|
||||||
#== gist urls ==#
|
#== gist urls ==#
|
||||||
GIST_URL = BASE_URL + '/gists/{0}' # specific gist
|
GIST_URL = BASE_URL + '/gists/{0}' # specific gist
|
||||||
|
CREATE_GIST_URL = BASE_URL + '/gists' # create a gist
|
||||||
|
|
||||||
CREATE_GIST_URL = BASE_URL + '/gists'
|
CREATE_GIST_URL = BASE_URL + '/gists'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue