def get_url(ticker, interval):
    """Sets the URL
    Args:
        ticker (str): Ticker Symbol
        interval (str): Time interval
    Returns:
        str: The final URL for the API
    """

    # Get the final API url
    alpha_api = 'O1C7ECLZQODUYN6D'
    url = 'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY'
    outputsize = 'full'
    return url + '&symbol=' + ticker + '&outputsize=' + outputsize + \
        '&interval=' + interval + '&apikey=' + alpha_api