'Add ``username`` to ``team`` and thereby to this organization.
.. warning::
This method is no longer valid. To add a member to a team, you
must now retrieve the team directly, and use the ``invite``
method.
.. warning::
This method is no longer valid. To add a member to a team, you
must now retrieve the team directly, and use the ``invite``
method.
Any user that is to be added to an organization, must be added
to a team as per the GitHub api.
.. versionchanged:: 1.0
The second parameter used to be ``team`` but has been changed to
``team_id``. This parameter is now required to be an integer to
improve performance of this method.
:param str username: (required), login name of the user to be added
:param int team_id: (required), team id
:returns: bool'

@requires_auth
def add_member(self, username, team_id):

    warnings.warn(u'This    is    no    longer    supported    by    the    GitHub    API,    see    https://developer.github.com/changes/2014-09-23-one-more-week-before-the-add-team-member-api-breaking-change/', DeprecationWarning)
    if (int(team_id) < 0):
        return False
    url = self._build_url(u'teams', str(team_id), u'members', str(username))
    return self._boolean(self._put(url), 204, 404)
