Skip to main content
Question

How to get results from Boxr Search results

  • May 21, 2025
  • 2 replies
  • 10 views

Forum|alt.badge.img

can 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)

 

2 replies

Forum|alt.badge.img

 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

 

 

 

 


Forum|alt.badge.img

Thanks! I was able to filter out results!