Skip to content

Commit

Permalink
fixed code for tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
lingz committed Sep 10, 2013
1 parent ba6a5ed commit 434e8a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/calendar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def self.get_user_client(userId)
return false, false
end
client = Google::APIClient.new
client.authorization.client_id = ENV['CLIENT_ID']
client.authorization.client_secret = ENV['CLIENT_SECRET']
client.authorization.scope = "https://www.googleapis.com/auth/calendar"
client.authorization.access_token = user.nyu_token
client.authorization.refresh_token = user.refresh_token
Expand Down

0 comments on commit 434e8a4

Please sign in to comment.