(article_id, version=None)
List all the files associated with a given article.

    Parameters
    ----------
    article_id : str or int
        Figshare article ID
    version : str or id, default is None
        Figshare article version. If None, selects the most recent version.

    Returns
    -------
    response : dict
        HTTP request response as a python dict
List all the files associated with a given article.
List all the files associated with a given article .
def fs_get_file_list(article_id, version=None):
    """List all the files associated with a given article.

    Parameters
    ----------
    article_id : str or int
        Figshare article ID
    version : str or id, default is None
        Figshare article version. If None, selects the most recent version.

    Returns
    -------
    response : dict
        HTTP request response as a python dict
    """
    fsurl = "https://api.figshare.com/v2"
    if version is None:
        url = fsurl + "/articles/{}/files".format(article_id)
        headers = {"Content-Type": "application/json"}
        response = fs_issue_request("GET", url, headers=headers)
        return response
    else:
        url = fsurl + "/articles/{}/versions/{}".format(article_id, version)
        request = fs_issue_request("GET", url, headers=headers)
        return request["files"]
def fs_get_file_list ( article_id , version = None ) : fsurl = "https://api.figshare.com/v2" if version is None : url = fsurl + "/articles/{}/files" . format ( article_id ) headers = { "Content-Type" : "application/json" } response = fs_issue_request ( "GET" , url , headers = headers ) return response else : url = fsurl + "/articles/{}/versions/{}" . format ( article_id , version ) request = fs_issue_request ( "GET" , url , headers = headers ) return request [ "files" ]