How to get results from Boxr Search results
Answeredcan anyone help to show me examples of how to access data from search results using the Boxr Ruby sdk?
https://github.com/cburnette/boxr
It won't let me access each property individually like other results. (folder collections, collaboration collections etc)
-
The search method in the Ruby SDK returns results in an array. Here are a couple of examples showing how to access the value of the item id property for each result.
require 'boxr' client = Boxr::Client.new('ACCESS_TOKEN') results = client.search("SEARCH_STRING") #Print out item id for each search result results.each do |result| puts "File Id: #{result.id}" end #Print out item id by the element's index number in the results array puts results[0].id
Please sign in to leave a comment.
Comments
2 comments