import requests


def get_user_info(token):
    """
    Gets user information from Eventbrite

    Arguments:
    token -- the Eventbrite user OAuth token, used to authenticate with Eventbrite's API.

    Returns:
    resp -- the response from the API
    """
    # set token in request header
    headers = {"Authorization": "Bearer {}".format(token)}
    # hit API and parse response
    r = requests.get("https://www.eventbriteapi.com/v3/users/me/", headers=headers)
    resp = r.json()
    return resp