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

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

      post('/api/flairtemplate', body: params)
    end
Create or edit a flair template.

 @param subreddit [String] The subreddit targeted.ate allows users to specify their own text
 @param opts [Hash] An options hash
 @option opts [String] css_class The list of css classes applied to this style, space separated
 @option opts [USER_FLAIR, LINK_FLAIR] flair_type ('USER_FLAIR') The type of flair template.
 @option opts [String] text The flair template's text.
 @option opts [true, false] text_editable (false) If the user is allowed to edit their flair text
 @option opts [String] template_id The flair template ID, for editing.
 @return (see #clear_sessions)