Module: Strava::V2::AuthRequest

Included in:
Connection
Defined in:
lib/strava/v2/auth_request.rb

Instance Method Summary collapse

Instance Method Details

#login(email, password) ⇒ Object



10
11
12
13
14
# File 'lib/strava/v2/auth_request.rb', line 10

def (email, password)
  auth = Auth.new(self.fetch((), {:email => email, :password => password}))
  self.set_authorized_user(auth.athlete.id, auth.token)
  return auth
end

#login_pathObject



6
7
8
# File 'lib/strava/v2/auth_request.rb', line 6

def 
  'authentication/login'
end