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