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)
| 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): |
nothing calls this directly
no test coverage detected