def build_url_with_tinyid(url, tinyId):
    """
    Takes a url with "$tinyid" as a variable placeholder
    Returns url with specified tinyId of "$lookback"

    Attributes:
        url (str): a url string with '$lookback" within that string
        tinyid (int): id of event in OpsGenie
    """

    # String replacement for variable
    url = url.replace('$tinyid', tinyId)

    # String replacement for HTML encoding
    # url = url.replace("=", "%3D")
    # url = url.replace(" ", "%20")
    # url = url.replace(">", "%3E")
    # url = url.replace("<", "%3C")

    return url