lib/snoo/flair.rb
def flair subreddit, opts = {}
      logged_in?
      params = {
        r: subreddit,
        uh: @modhash,
        api_type: 'json'
      }
      params.merge! opts

      post('/api/flair', body: params)
    end
def flair subreddit, opts = {}
      logged_in?
      params = {
        r: subreddit,
        uh: @modhash,
        api_type: 'json'
      }
      params.merge! opts

      post('/api/flair', body: params)
    end
Sets flair on a thing, currently supports links and users. Must specify **either** link *or* user, **not** both

 @param subreddit [String] The subreddit targeted.
 @param opts [Hash] An options hash.
 @option opts [String] :css_class The class(es) applied to the flair. Whitespace separated
 @option opts [String] :text The flair text
 @option opts [String] :name The user who we are flairing. This requires a username
 @option opts [String] :link The thing id of the link (if a link). Begins with `t3_`
 @return (see #clear_sessions)