def get_groups(self):
    url = '{}/groups'.format(self.base_url)
    try:
        r = requests.get(url)
    except:
        raise APIException('Failed to send group get GET')
    try:
        return list(r.json().keys())
    except:
        raise APIException('Failed to decode group get json response')
def get_groups(self):
    url = '{}/groups'.format(self.base_url)
    try:
        r = requests.get(url)
    except:
        raise APIException('Failed to send group get GET')
    try:
        return list(r.json().keys())
    except:
        raise APIException('Failed to decode group get json response')