def url_api(namespace, method, version="1"):
    """Generates a full Steam API url.

    Parameters
    ----------
    namespace : str
        The API namespace. (login, id, profile, etc..)
    method : str
        The endpoint for that namespace. (dologin, etc...)
    version : str, optional
        The version of the API call to use. Defaults to 1.

    Returns
    -------
    str
        Full Steam URL
    """
    return 'https://api.steampowered.com/{namespace}/{method}/v{version}/'.format(namespace=namespace, method=method, version=version)