import requests


def execute_fibonacci_query(fibonacci_sequence):
    """Execute a call on the Fibonacci API with the supplied sequence.

    Args:
        fibonacci_sequence (int): Desired Fibonacci sequence to
        retrieve a value for.

    Returns:
        Fibonacci value for the supplied sequence.

    """

    url = 'http://localhost:8080/fibonacci'
    request_parameters = {'desired_sequence': int(fibonacci_sequence)}

    response = requests.get(url, params=request_parameters)

    if response.status_code == 200:
        return response.text
    else:
        raise Exception("Unexpected response code")