import requests


def fetch(url, payload, auth):
    """Fetch requests from groupsio API"""
    r = requests.get(url, params=payload, auth=auth)
    try:
        r.raise_for_status()
    except requests.exceptions.HTTPError as e:
        raise e
    return r