Sha256: 20821673f46624f7ec82ccdfa76f2675b236c08ccaa5e3d2a038877e9f628abb

Contents?: true

Size: 333 Bytes

Versions: 10

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

module FitbitAPI
  class Client
    # Retrieves a list of the Fitbit user's friends.

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

    # Retrieves the user's friends leaderboard.

    def friends_leaderboard
      get("user/#{user_id}/friends/leaderboard.json")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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