SearchOneAsync

Searches for a single item within a folder using a query Returns ()

The bottom method attempts to return only one value but if the search is not specific enough it will return an error stating there was more than one item found.

Name Description
folder The folder to search in
query The search query string
includeChildFolders Whether to include items from child folders in the search
spanScope Whether to span across scope boundaries
includeParents Whether to include parent folder information

Search One Async

Example in C#

// Returns: T
var item = await client.SearchOneAsync<T>(FolderInfo folder, String query, Boolean includeChildFolders, Boolean spanScope, Boolean includeParents);

Example in CURL



           #General Search
           curl -X GET \ 
               https://api.us.acresecurity.cloud/api/f/Instance.key?q=YOUR_QUERY&includeChildFolders=True&spanScope=False \ 
               -H 'Authorization: Bearer TOKEN_GOES_HERE'