now user can use qq to login

This commit is contained in:
2013-02-06 14:35:43 +08:00
parent 9495ee6881
commit eae8ec4454
-4
View File
@@ -32,7 +32,6 @@ module QQAuth
http.use_ssl = true
path ='/oauth2.0/me?' +
'access_token='+access_token
response = http.get(path)
get_open_id response.body
end
@@ -46,9 +45,6 @@ module QQAuth
'&openid=' +openid
response = http.get(path)
response = JSON.parse response.body
puts "response====" +response.to_s
response
end
def get_open_id (str)