@base.apimethod
    def add(self, user):
        url = '{0}/{1}'.format(self.get_url(), user)

        # include a body, because requests does not send content-length when no
        # body is present, and that makes GitHub respond with HTTP 411
        return http.Request('PUT', url, '*'), parsers.parse_empty
Add a collaborator to this repo.
dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/github/repos.py/RepoCollaborators.add