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

Method add_to_emails

github/AuthenticatedUser.py:423–429  ·  view source on GitHub ↗

:calls: `POST /user/emails `_

(self, *emails: str)

Source from the content-addressed store, hash-verified

421 return self._user_view_type.value
422
423 def add_to_emails(self, *emails: str) -> None:
424 """
425 :calls: `POST /user/emails <http://docs.github.com/en/rest/reference/users#emails>`_
426 """
427 assert all(isinstance(element, str) for element in emails), emails
428 post_parameters = {"emails": emails}
429 headers, data = self._requester.requestJsonAndCheck("POST", "/user/emails", input=post_parameters)
430
431 def add_to_following(self, following: NamedUser) -> None:
432 """

Callers 2

testShouldDeferWritesMethod · 0.80
testEmailsMethod · 0.80

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected