Box Developerドキュメント

Box Developerドキュメントの新しいベータ版サイトがまもなくリリースされる予定です。最新の開発者向けガイド、APIリファレンス、AI搭載の検索により、Boxを使用した迅速な開発をサポートします。更新情報については今しばらくお待ちください。

コレクション内の項目のリストの取得

ガイド コレクション コレクション内の項目のリストの取得

コレクション内の項目のリストの取得

フォルダ内のすべてのファイル、フォルダ、およびウェブリンクのリストを取得するには、GET /collections/:id/items APIを呼び出します。

cURL
curl -i -X GET "https://api.box.com/2.0/collections/926489/items" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.collections.getCollectionItems(favouriteCollection.id!);
Python v10
client.collections.get_collection_items(favourite_collection.id)
.NET v10
await client.Collections.GetCollectionItemsAsync(collectionId: NullableUtils.Unwrap(favouriteCollection.Id));
Swift v10
try await client.collections.getCollectionItems(collectionId: favouriteCollection.id!)
.NET v6
await client.Collections.GetCollectionItemsAsync(collectionId: NullableUtils.Unwrap(favouriteCollection.Id));
Node v4
await client.collections.getCollectionItems(favouriteCollection.id!);

APIを介して使用できるコレクションは「お気に入り」コレクションのみです。このコレクションのIDはユーザーごとに異なります