Constructor
new Search(client) → {void}
Parameters:
| Name | Type | Description | 
|---|---|---|
client | 
            
            BoxClient | The Box API Client that is responsible for making calls to the API | 
- Source:
 
Returns:
- Type
 - void
 
Members
(readonly) scopes :SearchScope
    Valid search scopes
    Type:
- Source:
 
Methods
query(searchString, optionsopt, callbackopt) → {Promise.<Object>}
    Searches Box for the given query.
    Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
searchString | 
            
            string | The query string to use for search | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options | 
            
            Object | 
                
                    <optional> | 
            
            
            Additional search filters. Can be left null in most cases.
                Properties
  | 
        ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
callback | 
            
            APIRequest~Callback | 
                
                    <optional> | 
            
            
            passed the new comment data if it was posted successfully | 
- Source:
 
Returns:
    A promise resolving to the collection of search results
- Type
 - Promise.<Object>
 
query(searchString, optionsopt, callbackopt) → {Promise.<Object>}
    Searches Box for the given query.
    Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
searchString | 
            
            string | The query string to use for search | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options | 
            
            Object | 
                
                    <optional> | 
            
            
            Additional search filters. Can be left null in most cases.
                Properties
  | 
        ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
callback | 
            
            APIRequest~Callback | 
                
                    <optional> | 
            
            
            passed the new comment data if it was posted successfully | 
- Source:
 
Returns:
    A promise resolving to the collection of search results
- Type
 - Promise.<Object>