Problem updating Google Contact Picture in Ruby
问题 I am trying to write a ruby app to update Google Contact Photos but I cant get the upload working. Im not sure if I have misunderstood the Google API but this is what I have so far: Net::HTTP.start(URI.parse(image_element.attributes['href']).host) do |http| response, body = http.put(URI.parse(image_element.attributes['href']).path, data, {'If-Match' => '*', 'content-type'=>'image/*'}) end The Google Data API says: Every contact has a photo link element. It has the form: href='https://www