def get_user_listing username, opts = {}
      opts[:type] = 'overview' if opts[:type].nil?
      url = "/user/%s%s.json" % [username, ('/' + opts[:type] if opts[:type] != 'overview')]
      opts.delete :type
      query = opts
      get(url, query: query)
    end
def get_user_listing username, opts = {}
      opts[:type] = 'overview' if opts[:type].nil?
      url = "/user/%s%s.json" % [username, ('/' + opts[:type] if opts[:type] != 'overview')]
      opts.delete :type
      query = opts
      get(url, query: query)
    end
Get a listing of user posts. Some options may be restricted

 @param (see #get_user_info)
 @param (see LinksComments#info)
 @option opts [overview, submitted, comments, liked, disliked, hidden, saved] :type Type of post to return. Most users only allow the first 3 types.
 @option opts [new, hot, top, controversial] :sort The sort order
 @option opts [String] :after Return things *after* this id
 @option opts [String] :before Return things *before* this id
 @option opts [1..100] :limit Number of results to return
 @return (see #clear_sessions)