Sha256: eb6a537fa9f349a5dddad28b0ae3a7583965c6baed765489bb71ce9026473b48
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
require 'strava/v2/models/auth' module Strava module V2 module AuthRequest def login_path 'authentication/login' end def login(email, password) auth = Auth.new(self.fetch(login_path(), {:email => email, :password => password})) self.set_authorized_user(auth.athlete.id, auth.token) return auth end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strava-api-v2-0.1 | lib/strava/v2/auth_request.rb |