From 8cc315fb5bbc056e99a57ece3f76d069723165ee Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Mon, 27 Jun 2022 13:47:32 +0300 Subject: [PATCH] Add meta routes --- github/internals/http.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/github/internals/http.py b/github/internals/http.py index a0a663a..dc7e84a 100644 --- a/github/internals/http.py +++ b/github/internals/http.py @@ -67,7 +67,7 @@ class RateLimits(NamedTuple): # Issues # Licenses DONE # Markdown DONE -# Meta +# Meta DONE # Metrics # Migrations # OAuth authorizations @@ -926,3 +926,17 @@ class HTTPClient: return await self.request("POST", "/markdown", data=data) # TODO: Implement Markdown raw request, idk + + # === META === # + + async def get_github_api_root(self): + return await self.request("GET", "/") + + async def get_git_hub_meta_info(self): + return await self.request("GET", "/meta") + + async def get_octocat(self): + return await self.request("GET", "/octocat") + + async def get_the_zen_of_github(self): + return await self.request("GET", "/zen") \ No newline at end of file