def get_listing opts = {}
      # Build the basic url
      url = "%s/%s.json" % [('/r/' + opts[:subreddit] if opts[:subreddit] ), (opts[:page] if opts[:page])]
      # Delete subreddit and page from the hash, they dont belong in the query
      [:subreddit, :page].each {|k| opts.delete k}
      query = opts
      # Make the request
      get(url, query: query)
    end
def get_listing opts = {}
      # Build the basic url
      url = "%s/%s.json" % [('/r/' + opts[:subreddit] if opts[:subreddit] ), (opts[:page] if opts[:page])]
      # Delete subreddit and page from the hash, they dont belong in the query
      [:subreddit, :page].each {|k| opts.delete k}
      query = opts
      # Make the request
      get(url, query: query)
    end
Gets a listing of links from reddit.

 @param (see LinksComments#info)
 @option opts [String] :subreddit The subreddit targeted. Can be psuedo-subreddits like `all` or `mod`. If blank, the front page
 @option opts [new, controversial, top, saved] :page The page to view.
 @option opts [new, rising] :sort The sorting method. Only relevant on the `new` page
 @option opts [hour, day, week, month, year] :t The timeframe. Only relevant on some pages, such as `top`. Leave empty for all time
 @option opts [1..100] :limit The number of things to return.
 @option opts [String] :after Get things *after* this thing id
 @option opts [String] :before Get things *before* this thing id
 @return (see #clear_sessions)