def body_fat_logs(start_date: nil, end_date: nil, period: nil)
      unless start_date
        raise FitgemOauth2::InvalidArgumentError, 'must specify start_date'
      end
      url = ['user', user_id, 'body/log/fat/date', format_date(start_date)].join('/')
      if end_date
        url = [url, format_date(end_date)].join('/')
      end

      if period
        if FAT_PERIODS.include?(period)
          url = [url, period].join('/')
        else
          raise FitgemOauth2::InvalidArgumentError, "period must be one in #{FAT_PERIODS}"
        end
      end

      url = url + '.json'

      get_call(url)
    end
def body_fat_logs(start_date: nil, end_date: nil, period: nil)
      unless start_date
        raise FitgemOauth2::InvalidArgumentError, 'must specify start_date'
      end
      url = ['user', user_id, 'body/log/fat/date', format_date(start_date)].join('/')
      if end_date
        url = [url, format_date(end_date)].join('/')
      end

      if period
        if FAT_PERIODS.include?(period)
          url = [url, period].join('/')
        else
          raise FitgemOauth2::InvalidArgumentError, "period must be one in #{FAT_PERIODS}"
        end
      end

      url = url + '.json'

      get_call(url)
    end
======================================
      Boday Fat
 ======================================
 retrieves a list of all user's body fat log entries
 note: provide either end_date or period
 @param start_date start date for the logs
 @param end_date (optional)end date for the logs
 @param period (optional) period for the logs