Integrations/MicrosoftGraphFiles/MicrosoftGraphFiles.py
def url_validation(url):
    """
    this function tests if a user provided a valid next link url
    :param url: next_link_url from graph api
    :return: checked url if url is valid. demisto error if not.
    """
    parsed_url = urlparse(url)
    # test if exits $skiptoken
    url_parameters = parse_qs(parsed_url.query)
    if not url_parameters.get("$skiptoken") or not url_parameters["$skiptoken"]:
        raise DemistoException(
            f"Url: {url} is not valid. Please provide another one. missing $skiptoken"
        )
    return url

    this function tests if a user provided a valid next link url
    :param url: next_link_url from graph api
    :return: checked url if url is valid. demisto error if not.
    
this function tests if a user provided a valid next link url
this function tests if a user provided a valid next link url
def url_validation(url):
    parsed_url = urlparse(url)
    url_parameters = parse_qs(parsed_url.query)
    if not url_parameters.get("$skiptoken") or not url_parameters["$skiptoken"]:
        raise DemistoException(
            f"Url: {url} is not valid. Please provide another one. missing $skiptoken"
        )
    return url
def url_validation ( url ) : parsed_url = urlparse ( url ) url_parameters = parse_qs ( parsed_url . query ) if not url_parameters . get ( "$skiptoken" ) or not url_parameters [ "$skiptoken" ] : raise DemistoException ( f"Url: {url} is not valid. Please provide another one. missing $skiptoken" ) return url
this function tests if a user provided a valid next link url
this function tests if a user provided a valid next link url
"""
    this function tests if a user provided a valid next link url
    :param url: next_link_url from graph api
    :return: checked url if url is valid. demisto error if not.
    """ # test if exits $skiptoken
checked url if url is valid. demisto error if not.
checked url if url is valid . demisto error if not .
url
next_link_url from graph api
next_link_url from graph api