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