Welcome to the new Box Support website. Check out all the details here on what’s changed.

Comments

2 comments

  • Murtza

     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

     

     

     

     

    0
    Comment actions Permalink
  • Band-Aid

    Thanks! I was able to filter out results!

    0
    Comment actions Permalink

Please sign in to leave a comment.