import requests


def callWakatimeAPI(params, route):
    """handles the API requests

    :params: object
    :route: string
    :returns: json

    """
    headers = {'Accept':'application/x-www-form-urlencoded'}
    r = requests.get(route, headers=headers, params=params)
    return r.json()