新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

iOS SDK: Get ID of folder give a folder name

新規投稿

コメント

1件のコメント

  • Murtza

     You can use the Box API search endpoint to query a folder by name. If the search endpoint finds the folder, the response will include the folder's id.

     

    Here is an example that shows how to make this call with the Box iOS SDK:

     

     

    BOXContentClient *contentClient = [BOXContentClient defaultClient]; 
    
    BOXSearchRequest *searchRequest = [contentClient searchRequestWithQuery:@"Test Folder" inRange:NSMakeRange(0, 1000)];      
    
    [searchRequest performRequestWithCompletion:^(NSArray *items, NSUInteger totalCount, NSRange range, NSError *error) {
    // If successful, items will be non-nil and contain BOXItem model objects; otherwise, error will be non-nil. 
    }];

     

    0
    コメントアクション Permalink

サインインしてコメントを残してください。