MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / get_emails

Method get_emails

github/AuthenticatedUser.py:723–728  ·  view source on GitHub ↗

:calls: `GET /user/emails `_

(self)

Source from the content-addressed store, hash-verified

721 return PaginatedList(github.Authorization.Authorization, self._requester, "/authorizations", None)
722
723 def get_emails(self) -> list[EmailData]:
724 """
725 :calls: `GET /user/emails <http://docs.github.com/en/rest/reference/users#emails>`_
726 """
727 headers, data = self._requester.requestJsonAndCheck("GET", "/user/emails")
728 return [EmailData(**item) for item in data]
729
730 def get_events(self) -> PaginatedList[Event]:
731 """

Callers 2

testShouldDeferWritesMethod · 0.80
testEmailsMethod · 0.80

Calls 2

EmailDataClass · 0.85
requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected