module Fleetly::User

Public Instance Methods

me(options={}) click to toggle source

Retrieve information about ‘me` associated to the `oauth_token`

@param :include_activities [Integer] (1,0) ‘0` default @param :include_challenges [Integer] (1,0) `0` default @param :include_friends [Integer] (1,0) `0` default

@return [Hashie::Mash] User

# File lib/fleetly/user.rb, line 15
def me(options={})
  options[:oauth_token] = token
  user_me_response = get('/api/v1/users/me', options)

  user_me_response if user_me_response.result?
end