import requests
import json


def RequestGet(data):
    """
    Method to call requests.get with data.

    **Parameters**

    - `data`:        dictionary with at least the following

        key:value pairs: url, headers, params

    **Returns**

    A dictionary of request data.
    """
    response = requests.get(
        data["url"], headers=data["headers"], params=data["params"]
    )
    if not response.ok:  # raise internal exception if bad response
        response.raise_for_status()
    return json.loads(response.text).get("obj")