def getgroups(self, group_id=None, page=1, per_page=20):
        data = {'page': page, 'per_page': per_page}

        request = requests.get("{0}/{1}".format(self.groups_url,
                                              group_id if group_id else ""),
                               params=data, headers=self.headers, timeout=self.timeout,
                               verify=self.verify_ssl, auth=self.auth)
        if request.status_code == 200:
            return request.json()
        else:
            return False
Retrieve group information
dataset/ETHPy150Open pyapi-gitlab/pyapi-gitlab/gitlab/__init__.py/Gitlab.getgroups