MCPcopy
hub / github.com/donnemartin/gitsome / invite

Method invite

gitsome/lib/github3/orgs.py:125–136  ·  view source on GitHub ↗

Invite the user to join this team. This returns a dictionary like so:: {'state': 'pending', 'url': 'https://api.github.com/teams/...'} :param str username: (required), user to invite to join this team. :returns: dictionary

(self, username)

Source from the content-addressed store, hash-verified

123
124 @requires_auth
125 def invite(self, username):
126 """Invite the user to join this team.
127
128 This returns a dictionary like so::
129
130 {'state': 'pending', 'url': 'https://api.github.com/teams/...'}
131
132 :param str username: (required), user to invite to join this team.
133 :returns: dictionary
134 """
135 url = self._build_url('memberships', username, base_url=self._api)
136 return self._json(self._put(url), 200)
137
138 @requires_auth
139 def is_member(self, username):

Callers

nothing calls this directly

Calls 3

_build_urlMethod · 0.80
_jsonMethod · 0.80
_putMethod · 0.80

Tested by

no test coverage detected