Last active
December 22, 2015 16:29
-
-
Save rajiv/292d35a5f06e648b0eec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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