ガイドコラボレーションホワイトリスト企業全体のコラボレーションホワイトリストの取得

企業全体のコラボレーションホワイトリストの取得

企業全体のコラボレーションホワイトリストの取得

コラボレーションホワイトリストの取得では、現在の会社でのコラボレーションの作成を許可するドメインがすべて返されます。

リクエストに必須のパラメータはありませんが、オプションでlimitおよびmarketパラメータを設定すると、結果セット全体を制限してページ単位で表示できます。

cURL
curl -X GET https://api.box.com/2.0/collaboration_whitelist_entries \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'
.NET
BoxCollectionMarkerBased<BoxCollaborationWhitelistEntry> whitelistedDomains = await client.CollaborationWhitelistManager
    .GetAllCollaborationWhitelistEntriesAsync();
Java
BoxCollaborationWhitelist.getAll(api);
Python
whitelist_entries = client.collaboration_whitelist().get_entries()
for entry in whitelist_entries:
    direction = entry.direction if entry.direction != 'both' else 'bidirectional'
    print('Domain {0} is whitelisted for {1} collaboration'.format(entry.domain, direction))
Node
client.collaborationWhitelist.getAllWhitelistedDomains(callback);