List allowed domains for collaboration

List allowed domains for collaboration

Listing the domains that are allowed for collaboration will return all domains that permit collaborations to be created with the current enterprise.

There are no required parameters for the request, but limit and market parameters may optionally be set to limit and page through the full result set.

cURL
curl -i -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);