Box WebApp 集成获取所选文件的父详细信息

Box WebApp Integration get parent details of a selected file

在我的网络应用程序中使用 Box 文件选择器。配置如下:

在我的HTML中添加了:

<script src="https://app.box.com/js/static/select.js"></script>

在 JS 文件中,

var options = {
  clientId: myClientID,
  linkType: 'shared',
  multiselect: 'true'
};
var boxSelect = new BoxSelect(options);

// Register a success callback handler
boxSelect.success(function(response) {
  console.log(response[0].id); //This is giving me the fileId of a selected file
  console.log(response[0].id.parentNode); //Tried this to get parent (folder name associated to the selected file and gets undefined)
});
// Register a cancel callback handler
boxSelect.cancel(function() {
  console.log("The user clicked cancel or closed the popup");
});

$scope.launchBoxFilePicker = function() {
  boxSelect.launchPopup();
};

你们谁能指导我如何获取所选文件的父详细信息。

根据设计,文件的父详细信息不会通过 Box 文件选择器公开。