Sha256: caf4c0031c2294a3df9a86cde010147cbf918fc29afcf0107a8f764a2c69bafa

Contents?: true

Size: 440 Bytes

Versions: 5

Compression:

Stored size: 440 Bytes

Contents

module FitbitAPI
  class Client
    # Retrieves the user's profile data.

    def profile
      get("user/#{user_id}/profile.json")
    end

    # Retrieves a list of the user's badges.

    def badges
      get("user/#{user_id}/badges.json")
    end

    # Modifies a user's profile data.
    #
    # @param body [Hash] The POST request body

    def update_profile(body)
      post("user/#{user_id}/profile.json", body)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fitbit_api-0.14.2 lib/fitbit_api/user.rb
fitbit_api-0.14.1 lib/fitbit_api/user.rb
fitbit_api-0.14.0 lib/fitbit_api/user.rb
fitbit_api-0.13.0 lib/fitbit_api/user.rb
fitbit_api-0.12.2 lib/fitbit_api/user.rb