2015-04-17 36 views

回答

1

API將協作定義爲訪問控制列表。這是一個授予單個用戶(或組)訪問文件夾權限的對象,因此您無法真正訪問協作。

它聽起來更像是你問如何可以得到一個文件夾,你可以做所有的合作名單:

GET /folders/{id}/collaborations 

這將返回類似:

{ 
    "total_count": 1, 
    "entries": [ 
     { 
      "type": "collaboration", 
      "id": "14176246", 
      "created_by": { 
       "type": "user", 
       "id": "4276790", 
       "name": "David Lee", 
       "login": "[email protected]" 
      }, 
      "created_at": "2011-11-29T12:56:35-08:00", 
      "modified_at": "2012-09-11T15:12:32-07:00", 
      "expires_at": null, 
      "status": "accepted", 
      "accessible_by": { 
       "type": "user", 
       "id": "755492", 
       "name": "Simon Tan", 
       "login": "[email protected]" 
      }, 
      "role": "editor", 
      "acknowledged_at": "2011-11-29T12:59:40-08:00", 
      "item": null 
     } 
    ] 
} 

https://developers.box.com/docs/#folders-view-a-folders-collaborations

相關問題