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