Sha256: 10ed3f06acf4efb765b6910df7c43c34300a11bbf33e86006e7ec55bf30cdd26

Contents?: true

Size: 471 Bytes

Versions: 10

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

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

10 entries across 10 versions & 1 rubygems

Version Path
fitbit_api-1.1.0 lib/fitbit_api/user.rb
fitbit_api-1.0.1 lib/fitbit_api/user.rb
fitbit_api-1.0.0 lib/fitbit_api/user.rb
fitbit_api-0.17.1 lib/fitbit_api/user.rb
fitbit_api-0.17.0 lib/fitbit_api/user.rb
fitbit_api-0.16.0 lib/fitbit_api/user.rb
fitbit_api-0.15.3 lib/fitbit_api/user.rb
fitbit_api-0.15.2 lib/fitbit_api/user.rb
fitbit_api-0.15.1 lib/fitbit_api/user.rb
fitbit_api-0.15.0 lib/fitbit_api/user.rb