import requests


def get_policy_from_server(policy_url, application_name, dane_id):
    """Return JSON response from policy server."""
    params = {"application_name": application_name, "device_name": dane_id}
    response = requests.get(policy_url, params=params)
    return response.json()