指定したユーザーのすべてのコレクションを取得します。
現在サポートされているのは、favorites
コレクションのみです。
id,type,name
応答に含める属性のカンマ区切りリスト。このパラメータを使用すると、標準の応答には通常含まれないフィールドをリクエストできます。
このパラメータを指定すると、明示的に指定しない限り標準フィールドは応答に含まれず、リクエストしたフィールドのほかには、簡易版レプリゼンテーションのフィールドしか返されないことに注意してください。
1000
1000
返す項目の1ページあたりの最大数。
1000
0
応答が開始される項目のオフセット。
指定したユーザーのすべてのコレクションを返します
予期しないクライアントエラー。
curl -X GET https://api.box.com/2.0/collections \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
BoxCollection<BoxCollectionItem> collections = await client.CollectionsManager.GetCollectionsAsync();
Iterable<BoxCollection.Info> collections = BoxCollection.getAllCollections(api);
for (BoxCollection.Info collectionInfo : collections) {
// Do something with the collection.
}
collections = client.collections()
for collection in collections:
print('Collection "{0}" has ID {1}'.format(collection.name, collection.id))
client.collections.getAll()
.then(collections => {
/* collections -> { total_count: 1,
entries:
[ { type: 'collection',
id: '11111',
name: 'Favorites',
collection_type: 'favorites' } ],
limit: 100,
offset: 0 }
*/
});