def activity_logs_list(opts={})
      opts[:params] = {}
      param_defaults = { before_date: Date.today, after_date: nil, sort: 'desc', limit: 20, offset: 0 }

      # move param values from top-level opts into :params sub-hash
      param_defaults.each do |key, default_val|
        opts[:params][key] = opts.delete(key) || default_val
      end

      get("user/#{user_id}/activities/list.json", opts)
    end
def activity_logs_list(opts={})
      opts[:params] = {}
      param_defaults = { before_date: Date.today, after_date: nil, sort: 'desc', limit: 20, offset: 0 }

      # move param values from top-level opts into :params sub-hash
      param_defaults.each do |key, default_val|
        opts[:params][key] = opts.delete(key) || default_val
      end

      get("user/#{user_id}/activities/list.json", opts)
    end
Retrieves a list of a user's activity log entries before or after a given day with
   offset and limit using units in the unit system which corresponds to the Accept-Language header provided.
 ==== URL Parameters
 * +:beforeDate+ - the date; formatted in yyyy-MM-ddTHH:mm:ss
 * +:afterDate+ - the date; formatted in yyyy-MM-ddTHH:mm:ss
 * +:sort+ - the sort order of entries by date (asc or desc)
 * +:offset+ - the offset number of entries. Must always be 0
 * +:limit+ - the max of the number of entries returned (max: 20)