def generate_params(api_key, request):
    """
    Used to generate params from request
    Parameters
    ----------
    api_key : str
    request : BaseRequest

    Returns
    -------

    """
    params = request.decode()
    params['apiKey'] = api_key
    return params
