def collection_data_from_results(res, name, key)
      collections = res['collections']
      collections.each do |collection|
        return collection[key] if collection['name'] == name
      end
      nil
    end
def collection_data_from_results(res, name, key)
      collections = res['collections']
      collections.each do |collection|
        return collection[key] if collection['name'] == name
      end
      nil
    end
Extract the site data for 'key' based on the site result object
 @param [Hash] res result from a request to /collections
 @param [String] name
 @param [String] key one of the user data returned (id, name, domain...)
 @return [Object] Integer, String, Array, Hash depending on the collection data