Skip to content

Instantly share code, notes, and snippets.

@rajiv
Last active December 22, 2015 16:29
Show Gist options
  • Save rajiv/292d35a5f06e648b0eec to your computer and use it in GitHub Desktop.
Save rajiv/292d35a5f06e648b0eec to your computer and use it in GitHub Desktop.
require 'net/http'
uri = URI('https://www.googleapis.com/oauth2/v1/userinfo')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
puts http.get(uri.request_uri)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment