def getfilearchive(self, project_id, filepath=""):
        request = requests.get("{0}/{1}/repository/archive".format(self.projects_url, project_id),
                               verify=self.verify_ssl, auth=self.auth, headers=self.headers, timeout=self.timeout)
        if request.status_code == 200:
            if filepath == "":
                filepath = request.headers['content-disposition'].split(";")[1].split("=")[1].strip('"')
            with open(filepath, "wb") as filesave:
                filesave.write(request.content)
                # TODO: Catch oserror exceptions as no permissions and such
                # TODO: change the filepath to a path and keep always the filename?
            return True
        else:
            msg = request.json()['message']
            raise exceptions.HttpError(msg)
An abstract method returning the integer id for an item.
dataset/ETHPy150Open pyapi-gitlab/pyapi-gitlab/gitlab/__init__.py/Gitlab.getfilearchive--crossover with--dataset/ETHPy150Open beetbox/beets/beetsplug/bpd/__init__.py/BaseServer._item_id